Register the hstcms.info command.
348328
protected function registerInfoCommand()
    {
        $this->app->singleton('command.hstcms.info', function ($app) {
            return new \Huasituo\Hstcms\Console\Commands\HstcmsInfoCommand($app['hstcms']);
        });
        $this->commands('command.hstcms.info');
    }
1007563
protected function registerMakeCommand()
    {
        $this->commands('modules.make');
        
        $bind_method = method_exists($this->app, 'bindShared') ? 'bindShared' : 'singleton';

        $this->app->{$bind_method}('modules.make', function ($app) {
            return new Console\ModuleMakeCommand($this->files);
        });
    }
363930
private function registerCommands()
    {
        // monashee:backup
        $this->app['command.monashee.backup'] = $this->app->share(function() {
            return $this->app->make('Monashee\Backup\Commands\MonasheeBackup');
        });

        $this->commands('command.monashee.backup');
    }
74309
def register(self, cmd: Type[Command]) -> None:
        
        self.commands[cmd.command] = cmd
155697
def info(request, message, extra_tags='', fail_silently=False):
    """"""
    add_message(request, constants.INFO, message, extra_tags=extra_tags,
                fail_silently=fail_silently)
1255182
public function register()
    {
        if (class_exists('\\TastPHP\\Service\\ServiceKernel')) {
            $this->app['serviceKernel'] = \TastPHP\Service\ServiceKernel::instance();
            $this->app['serviceKernel']->setContainer($this->app);
            $this->app['serviceKernel']->setConnection($this->app['dbs']);
            if (!empty($this->app['serviceKernel']->getConnection()['master'])) {
                $this->app['serviceKernel']->getConnection()['master']->exec("SET names utf8mb4");
            }
        }
    }
210531
public function registerCommands()
	{
		$this->app->bindShared('command.cache.clear', function($app)
		{
			return new Console\ClearCommand($app['cache'], $app['files']);
		});

		$this->commands('command.cache.clear');
	}
1188401
public function registerConsole()
    {
        $this->commands(TypeMakeCommand::class);
        $this->commands(QueryMakeCommand::class);
        $this->commands(MutationMakeCommand::class);
    }
398381
def register_signals(self, app):
        """"""
        before_record_index.connect(inject_provisional_community)
        if app.config['COMMUNITIES_OAI_ENABLED']:
            listen(Community, 'after_insert', create_oaipmh_set)
            listen(Community, 'after_delete', destroy_oaipmh_set)
        inclusion_request_created.connect(new_request)
1237228
private function registerCommands()
    {
        $this->commands([
            Console\Commands\SeedCountries::class,
            Console\Commands\SeedCurrencies::class,
            Console\Commands\SeedTimezones::class,
            Console\Commands\SeedTaxRates::class,
        ]);
    }
766367
protected function registerCommands(): void
    {
        // Register artisan commands
        foreach ($this->commands as $key => $value) {
            $this->app->singleton($value, $key);
        }

        $this->commands(array_values($this->commands));
    }
536904
def _register_info(self):
        """"""
        # Stores information on Workbench commands and signatures
        for name, meth in inspect.getmembers(self, predicate=inspect.isroutine):
            if not name.startswith('_') and name != 'run':
                info = {'command': name, 'sig': str(funcsigs.signature(meth)), 'docstring': meth.__doc__}
                self.workbench.store_info(info, name, 'command')

        # Register help information
        self.workbench.store_info({'help': self.help.help_cli()}, 'cli', 'help')
        self.workbench.store_info({'help': self.help.help_cli_basic()}, 'cli_basic', 'help')
        self.workbench.store_info({'help': self.help.help_cli_search()}, 'search', 'help')
        self.workbench.store_info({'help': self.help.help_dataframe()}, 'dataframe', 'help')
        self.workbench.store_info({'help': self.help.help_dataframe_memory()}, 'dataframe_memory', 'help')
        self.workbench.store_info({'help': self.help.help_dataframe_pe()}, 'dataframe_pe', 'help')
1208109
def register(self, server_info):
        """"""
        # Path relative to the server directory
        self.path = os.path.relpath(self.filename,
                                    start=server_info['notebook_dir'])

        # Replace backslashes on Windows
        if os.name == 'nt':
            self.path = self.path.replace('\\', '/')

        # Server url to send requests to
        self.server_url = server_info['url']

        # Server token
        self.token = server_info['token']

        url = url_path_join(self.server_url, 'notebooks',
                            url_escape(self.path))

        # Set file url to load this notebook
        self.file_url = self.add_token(url)
136480
def _register_namespace_and_command(self, namespace):
        """"""
        self._add_namespace(namespace)
        # Add the namespace for commands on this database
        cmd_name = namespace.source_name.split(".", 1)[0] + ".$cmd"
        dest_cmd_name = namespace.dest_name.split(".", 1)[0] + ".$cmd"
        self._add_namespace(Namespace(dest_name=dest_cmd_name, source_name=cmd_name))
833543
protected function registerConsoleCommands()
    {
        $this->commands(AssetCommand::class);
        $this->commands(ThemeCommand::class);
        $this->commands(InstallCommand::class);
        $this->commands(GenerateDocumentationCommand::class);
    }
590251
private function registerCommand()
    {
        $this->app->singleton('command.lada-cache.flush', function() {
            return new FlushCommand();
        });

        $this->app->singleton('command.lada-cache.enable', function() {
            return new EnableCommand();
        });

        $this->app->singleton('command.lada-cache.disable', function() {
            return new DisableCommand();
        });

        $this->commands([
            'command.lada-cache.flush',
            'command.lada-cache.enable',
            'command.lada-cache.disable',
        ]);
    }
1165205
private function registerCommands()
    {
        $this->app['commands.drawbridge.migrations'] = $this->app->share(function($app)
        {
            return new MigrationsCommand($app);
        });

        $this->commands(
            array(
                 'commands.drawbridge.migrations'
            )
        );
    }