Register the application bindings.

@return void
774131
private function registerFlashAlert()
    {
        $this->app->bind(
            'Srmklive\FlashAlert\SessionStore',
            'Srmklive\FlashAlert\FlashAlertSessionStore'
        );

        $this->app->singleton('flashalert', function () {
            return $this->app->make('Srmklive\FlashAlert\FlashAlertHandler');
        });
    }
1369341
public function registerApplicationConfig()
    {
        $this->singleton(ApplicationConfig::class, function () {
            return new ApplicationConfig($this->getConfigFiles());
        });

        $this->alias(ApplicationConfig::class, 'config');
    }
530708
public function register()
	{
		$this->app['db'] = function($app)
		{
			// @FIXME: this isn't pretty, but it will shim the removal of the old mysql_* calls from php
			$driver = (Config::get('dbtype') == 'mysql') ? 'pdo' : Config::get('dbtype');

			$options = [
				'driver'   => $driver,
				'host'     => Config::get('host'),
				'user'     => Config::get('user'),
				'password' => Config::get('password'),
				'database' => Config::get('db'),
				'prefix'   => Config::get('dbprefix')
			];

			return Driver::getInstance($options);
		};
	}
1166248
public function register(): void
    {
        $this->app->bind(\Assurrussa\GridView\Interfaces\GridInterface::class, function ($app) {
            /** @var Container $app */
            return $app->make(GridView::class);
        });
        $this->app->alias(\Assurrussa\GridView\GridView::class, GridView::NAME);
        $this->app->alias(\Assurrussa\GridView\GridView::class, \Assurrussa\GridView\Interfaces\GridInterface::class);
    }
641013
public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/../../config/config.php', 'litecms.portfolio');

        // Bind facade
        $this->app->bind('litecms.portfolio', function ($app) {
            return $this->app->make('Litecms\Portfolio\Portfolio');
        });

        // Bind Portfolio to repository
        $this->app->bind(
            'Litecms\Portfolio\Interfaces\PortfolioRepositoryInterface',
            \Litecms\Portfolio\Repositories\Eloquent\PortfolioRepository::class
        );
        // Bind Category to repository
        $this->app->bind(
            'Litecms\Portfolio\Interfaces\CategoryRepositoryInterface',
            \Litecms\Portfolio\Repositories\Eloquent\CategoryRepository::class
        );

        $this->app->register(\Litecms\Portfolio\Providers\AuthServiceProvider::class);

        $this->app->register(\Litecms\Portfolio\Providers\RouteServiceProvider::class);

    }
165843
public function register()
    {
        $this->bindGuzzle();

        $this->bindAuth();

        $this->bindHttpClient();

        $this->bindApiClient();

        $this->bindTaxonomyMapper();
    }
742602
public function register()
	{
		$this->app['db'] = function($app)
		{
			// @FIXME: this isn't pretty, but it will shim the removal of the old mysql_* calls from php
			$driver = ($app['config']->get('dbtype') == 'pdo') ? 'mysql' : $app['config']->get('dbtype');

			$options = [
				'driver'   => $driver,
				'host'     => $app['config']->get('host'),
				'user'     => $app['config']->get('user'),
				'password' => $app['config']->get('password'),
				'database' => $app['config']->get('db'),
				'prefix'   => $app['config']->get('dbprefix')
			];

			return Driver::getInstance($options);
		};
	}
1181819
protected function registerBindings()
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $config = $this->app['config']->get('elasticsearch', []);

        $this->app->/** @scrutinizer ignore-call */ singleton(ElasticsearchServiceContract::class, function () use ($config) {
            return new ElasticsearchService(ClientBuilder::fromConfig($config));
        });
    }
1026321
protected function registerBindings()
    {
        // TODO: Change to bind the implementation to the interface instead.
        $this->app->bind(CorsService::class, function () {
            return new CorsService(config(self::CONFIG_KEY));
        });

        $this->app->alias(CorsService::class, CorsServiceContract::class);
    }
144652
public function register()
    {
        // Registrar binds
        foreach ($this->binds as $bindId => $bindClass)
            $this->app->bind($bindId, $bindClass);

        // Registrar providers
        foreach ($this->providers as $provider => $classServiceProvider)
        {
            $this->app->singleton($provider, function ($app) use ($classServiceProvider) {
                return new $classServiceProvider($app);
            });
        }
    }
621618
public function register()
    {
        $this->registerRevisionRepository();
        $this->registerUserRepository();
        $this->registerGroupRepository();
        $this->registerCredentials();

        $this->registerLoginController();
        $this->registerRegistrationController();
        $this->registerResetController();
        $this->registerActivationController();
    }
884568
public function register()
    {
        $this->app->bind('maxfactor', Maxfactor::class);
        $this->app->bind('mx-countries', Countries::class);
        $this->app->bind('mx-format', Format::class);
        $this->app->bind('mx-video', Video::class);

        $this->publishConfigs();
    }
1186282
public function register() {

		$this->app->bind( ViewContract::class, View::class );

		$this->app->alias( ViewContract::class, 'view' );
	}
445998
public function register(): void
    {
        $this->app->register(EventServiceProvider::class);

        $this->commands([
            InstallCommand::class
        ]);

        $this->registerBindings();
    }
366564
protected function registerBaseBindings()
    {
        static::setInstance($this);

        $this->instance('app', $this);

        $this->instance(Container::class, $this);

        $this->instance(PackageManifest::class, new PackageManifest(
            new Filesystem, $this->basePath(), $this->getCachedPackagesPath()
        ));
    }
1125884
public function register()
    {
        $this->app->bindShared('db.factory', function($app)
        {
            return new ConnectionFactory($app);
        });

        $this->app->bindShared('db', function($app)
        {
            return new DatabaseManager($app, $app['db.factory']);
        });
    }
795445
public function register()
    {
        // Register Facade
        $this->app->bind('settings', function (Application $app) {
            return $app->make(SettingsHelper::class);
        });

        // Register Alias
        $this->app->booting(function () {
            $loader = AliasLoader::getInstance();
            $loader->alias('Settings', SettingsFacade::class);
        });
    }