Register the metric repository.

@return void
769148
protected function registerMetricRepository()
    {
        $this->app->singleton(MetricRepository::class, function (Container $app) {
            $config = $app->make(ConfigRepository::class);

            switch ($config->get('database.default')) {
                case 'mysql': $repository = new MySqlRepository($config); break;
                case 'pgsql': $repository = new PgSqlRepository($config); break;
                case 'sqlite': $repository = new SqliteRepository($config); break;
            }

            $dates = $app->make(DateFactory::class);

            return new MetricRepository($repository, $dates);
        });
    }
560018
protected function registerServices()
    {
        $this->app->singleton('modules', function ($app) {
            $path = $app['config']->get('modules.paths.modules');

            return new Repository($app, $path);
        });
    }
374337
private function registerSeoMetaService()
    {
        $this->singleton(Contracts\SeoMeta::class, function ($app) {
            /** @var  \Illuminate\Contracts\Config\Repository  $config */
            $config = $app['config'];

            return new SeoMeta($config->get('seo-helper'));
        });
    }
1017504
public function register()
    {
        $this->app->singleton(BaseRepository::class, function () {
            return new BaseRepository;
        });

        $this->app->alias(BaseRepository::class, 'baserepository');
    }
1249297
protected function registerServices()
    {
        $this->app->bindShared('modules', function ($app) {
            $path = $app['config']->get('modules.paths.modules');

            return new Repository($app, $path);
        });
    }
478126
public function register()
    {
        if (!defined('SCOOL_ATTENDANCE_PATH')) {
            define('SCOOL_ATTENDANCE_PATH', realpath(__DIR__.'/../../'));
        }

        $this->registerNamesServiceProvider();

        $this->registerStatefulEloquentServiceProvider();

        $this->bindRepositories();
    }
626022
public function register()
    {
        if (! defined('HORIZON_PATH')) {
            define('HORIZON_PATH', realpath(__DIR__.'/../'));
        }

        $this->configure();
        $this->offerPublishing();
        $this->registerServices();
        $this->registerCommands();
        $this->registerQueueConnectors();
    }
1350706
public function register()
    {
        $this->app->bind(LoaderInterface::class, ArrayLoader::class);

        $this->registerExtensionConfig();
        $this->registerExtensionFinder();
        $this->registerExtensionManager();
        $this->registerExtensionDispatcher();
        $this->registerExtensionBootstrap();
        $this->registerComposerHandler();
        $this->registerComponentsRepository();
    }
200424
public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/../config/keycdn.php', 'keycdn'
        );

        $this->app->bind(KeyCDN::class, function() {
            return KeyCDN::create(config('keycdn.key'));
        });

        $this->app->alias(KeyCDN::class, 'keycdn');
    }
951049
protected function registerCore()
	{
		// Bind the Entity Identifier aggregate.
	    $this->app->singleton(IdentifierServiceProvider::getProviderKey(), function($app)
	    {
	    	return new IdentifierService(IdentifierServiceProvider::getProviderKey(), new IdentifierDataSource(new IdentifierModel([], $this->getConnection())));
	    });

		// Bind the Entity Reference aggregate.
	    $this->app->singleton(ReferenceServiceProvider::getProviderKey(), function($app)
	    {
	    	return new ReferenceService(ReferenceServiceProvider::getProviderKey(), new ReferenceDataSource(new ReferenceModel([], $this->getConnection())));
	    });
	}
36857
protected function registerMakeCommand()
    {
        $this->app->singleton('command.repository.make', function ($app) {
            $prefix = $app['config']['repository.prefix'];
            $suffix = $app['config']['repository.suffix'];
            $contract = $app['config']['repository.contract'];
            $namespace = $app['config']['repository.namespace'];
            $creator = $app['repository.creator'];
            $files = $app['files'];

            return new RepositoryMakeCommand($creator, $prefix, $suffix, $contract, $namespace, $files);
        });

        $this->commands('command.repository.make');
    }
1324102
protected function registerGroupRepository()
    {
        $this->app->singleton('grouprepository', function ($app) {
            $model = $app['config']['sentry.groups.model'];
            $group = new $model();

            $validator = $app['validator'];

            return new GroupRepository($group, $validator);
        });

        $this->app->alias('grouprepository', GroupRepository::class);
    }
574438
public function register()
    {
        foreach (array_keys(config('modules.locations')) as $location) {
            $repository = $this->repository($location);
            $modules    = $repository->enabled();

            $modules->each(function ($module) use ($repository) {
                try {
                    $this->registerServiceProvider($repository, $module);

                    $this->autoloadFiles($module);
                } catch (ModuleNotFoundException $e) {
                    //
                }
            });
        }
    }
464253
public function register()
    {
        $this->registerRepository();
        $this->registerMigrator();
        $this->registerTranslation();
        // for create migration
        $this->registerCreator();
        // for create migration

        // add commands
        $this->registerCommands();


    }
598488
public function register()
    {
        $this->mergeConfig();

        /** @var Repository $config */
        $config = $this->app->make('config');

        $this->registerCoreServices($config);
        $this->registerEntityAuditConfigurations($config);
    }
1371397
public function register()
    {
        // Merge our config file with the application's copy of config file, to allow user to
        // just override the configuration that they wanted to make and keep the defaults that are
        // not touched
        $this->mergeConfigFrom(
            __DIR__.'/../../config/pluggables.php', 'pluggables'
        );

        // Register Services
        $this->registerServices();

        // Register Repository
        $this->registerRepository();

        // Register Migrator
        // Once the migrator instance is set, go ahead and register all migration related commands that are
        // used by the artisan commands for easy access
        $this->registerMigrator();

        // Register Console Commands
        $this->registerConsoleCommands();
    }
165843
public function register()
    {
        $this->bindGuzzle();

        $this->bindAuth();

        $this->bindHttpClient();

        $this->bindApiClient();

        $this->bindTaxonomyMapper();
    }