Register the migrator service.

@return void
767590
protected function registerMigrator()
	{
		// The migrator is responsible for actually running and rollback the migration
		// files in the application. We'll pass in our database connection resolver
		// so the migrator can resolve any of these connections when it needs to.
		$this->app->bindShared('migrator', function($app)
		{
			$repository = $app['migration.repository'];

			return new Migrator($repository, $app['db'], $app['files']);
		});
	}
360656
public function register()
    {
        $app                                   = $this->app;
        $app['antares.translations.installed'] = true;
        $this->bindContracts();

        $this->app->bind('languages', function() use($app) {
            return new Languages($app);
        });

        $this->app->singleton('translator', function($app) {
            $loader = $app->make('translation.loader');
            $locale = $app->make('config')->get('app.locale');
            $trans  = new Translator($loader, $locale);
            $trans->setFallback($app->make('config')->get('app.fallback_locale'));
            if ($app->bound('translation-manager')) {
                $trans->setTranslationManager($app->make('translation-manager'));
            }
            return $trans;
        });
    }
806563
protected function registerMigrateCommands()
    {
        $this->app->singleton('cms.commands.db-migrate', MigrateCommand::class);
        $this->app->singleton('cms.commands.db-migrate-install', MigrateInstallCommand::class);
        $this->app->singleton('cms.commands.db-migrate-refresh', MigrateRefreshCommand::class);
        $this->app->singleton('cms.commands.db-migrate-reset', MigrateResetCommand::class);
        $this->app->singleton('cms.commands.db-migrate-rollback', MigrateRollbackCommand::class);
        $this->app->singleton('cms.commands.db-migrate-status', MigrateStatusCommand::class);

        $this->commands([
            'cms.commands.db-migrate',
            'cms.commands.db-migrate-install',
            'cms.commands.db-migrate-reset',
            'cms.commands.db-migrate-refresh',
            'cms.commands.db-migrate-rollback',
            'cms.commands.db-migrate-status',
        ]);

        return $this;
    }
693270
public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/../config/translator.php', 'translator');

        parent::register();
        $this->registerCacheRepository();
        $this->registerFileLoader();
        $this->registerCacheFlusher();
        $this->app->singleton('translation.uri.localizer', UriLocalizer::class);
        $this->app[\Illuminate\Routing\Router::class]->aliasMiddleware('localize', TranslationMiddleware::class);
        // Fix issue with laravel prepending the locale to localize resource routes:
        $this->app->bind('Illuminate\Routing\ResourceRegistrar', ResourceRegistrar::class);
    }
388378
public function register()
    {
        $this->app->singleton('spam-protector', function ($app) {
            return new SpamProtector();
        });

        $this->app->alias(SpamProtector::class, 'spam-protector');
    }
188110
public function register()
    {

        if ('LaravelCommode\Common\CommodeCommonServiceProvider' !== get_class($this)) {
            /**
             * Prepare service
             */
            $this->prepareService();

            /**
             * Bind app's 'booting' event resolving, aliases and launching methods
             */
            $this->app->booting($this->getResolver()->makeClosure(function () {

                if (count($this->aliases) > 0) {
                    $loader = AliasLoader::getInstance();

                    foreach ($this->aliases as $facadeName => $facadeClass) {
                        $loader->alias($facadeName, $facadeClass);
                    }
                }

                $this->launchClosure();
            }));

        }

        /**
         * Register service
         */
        $this->registering();
    }
1252116
public function register()
    {
        $this->bindContracts();
        $this->app->singleton('antares.logger', function ($app) {
            return new Factory($app);
        });
        $this->app->singleton('logger.log-viewer.menu', function ($app) {
            return $app->make('Antares\Logger\Utilities\LogMenu');
        });
        $this->app->singleton('logger.filesystem', function ($app) {
            $files = $app->make('files');
            return new Filesystem($files, storage_path('logs'));
        });

        $this->commands(ReportCommand::class);
        $this->commands(LogsTranslationSynchronizer::class);

        $this->app['antares.logger.installed'] = true;
    }
813542
public function register()
    {
        $this->registerCacheRepository();
        $this->registerLoader();

        $this->app->singleton( 'translator', function ( Application $app )
        {
            $trans = new Translator( $app['translation.loader'], $app->getLocale() );
            $trans->setFallback( config( 'app.fallback_locale' ) );

            return $trans;
        } );

        $this->registerFileLoader();
        $this->registerCacheFlusher();

        $this->loadTranslationsFrom( __DIR__ . '/../../resources/lang', 'arbory' );
    }
364092
public function handle(Migrator $migrator)
   {
       $migrator->makeLogTable();

       $this->showMigrations($migrator);

       $this->showSeeds($migrator);
   }
1165205
private function registerCommands()
    {
        $this->app['commands.drawbridge.migrations'] = $this->app->share(function($app)
        {
            return new MigrationsCommand($app);
        });

        $this->commands(
            array(
                 'commands.drawbridge.migrations'
            )
        );
    }
698927
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/../config/roles.php', 'roles');
        $this->loadMigrationsFrom(__DIR__.'/Database/Migrations');
        $this->publishFiles();
        $this->loadSeedsFrom();
    }
1157125
public function handle(Migrator $migrator)
    {
        if (!$this->confirmToProceed()) {
            return;
        }

        $migrator->makeLogTable();

        $installed_migrations = $migrator->installedMigrationsByDesc();

        foreach ($installed_migrations as $group => $migrations) {
            foreach ($migrations as $data) {
                $this->infoDowngrade($group, $data->version, $data->class);

                $migrator->doDowngrade($group, $data->version);
            }
        }
    }
424525
public function register()
    {
        $this->app->singleton(Dispatcher::class, function (Container $app) {
            return new Dispatcher($app, function ($connection = null) use ($app) {
                return $app->make(Factory::class)->connection($connection);
            });
        });

        $this->app->alias(Dispatcher::class, DispatcherContract::class);
        $this->app->alias(Dispatcher::class, QueueingDispatcherContract::class);
    }
224132
public function register() : void
    {
        $environment = $this->app->environment();

        $providers = $this->app['config']->get('app.' . $environment . '_providers', []);

        foreach ($providers as $provider) {
            $this->app->register($provider);
        }

        $facades = $this->app['config']->get('app.' . $environment . '_aliases', []);

        foreach ($facades as $class => $name) {
            AliasLoader::getInstance()->alias($class, $name);
        }
    }
573408
public function register() {

        $this->app->register('Sgpatil\Orientdb\MigrationServiceProvider');

        $this->app['db']->extend('orientdb', function($config) {
            return new Connection($config);
        });

        $this->app->booting(function() {
            $loader = \Illuminate\Foundation\AliasLoader::getInstance();
            $loader->alias('Orientdb', 'Sgpatil\Orientdb\Eloquent\Model');
        });

        $this->app->bind('ConnectionResolverInterface', function($app) {
            $databases = $app['config']['database.connections'];
            $defaultConnection = $app['config']['database.default'];
            if($databases[$defaultConnection]['driver']!='orientdb') {
                $defaultConnection = $app['config']['database.default_nosql'];
            }
            $conn = new Connection($databases[$defaultConnection]);
            return new DatabaseManager($app, $conn);
        });

        $this->app->bind('MigrationRepositoryInterface', function($app) {
            $resolver = $this->app->make('ConnectionResolverInterface');
            $table = $app['config']['database.migrations'];
            return new DatabaseMigrationRepository($resolver, $table);
        });

        $this->app->bind('orientdb.database', function($app) {
            $databases = $app['config']['database.connections'];
            $defaultConnection = $app['config']['database.default'];
            if($databases[$defaultConnection]['driver']!='orientdb') {
                $defaultConnection = $app['config']['database.default_nosql'];
            }

            if(empty($defaultConnection)){
                throw new \Exception('Invalid database connection type. Please check DB_CONNECTION in database configuration file or in .env file.');
            }
            return new Connection($databases[$defaultConnection]);
        });

        $this->app->bind('CreateOrientdbMigration', function($app) {
            $database = $this->app->make('orientdb.database');
            return new CreateOrientdbMigration($database);
        });


        $CreateOrientdbMigration = $this->app->make('CreateOrientdbMigration');

        $this->commands('CreateOrientdbMigration');
    }
50812
public function register() {
        $this->app->singleton(PackageMigrateCommand::class, function () {
            return new PackageMigrateCommand($this->app['migrator'], $this->app[AutomaticMigrator::class]);
        });
    }
1051415
public function register()
    {
        $this->app->register(\Netcore\Translator\ServiceProvider::class);

        $this->commands([
            ImportTranslations::class,
            FindTranslations::class,
        ]);
    }