Register the application services.

@return void
762291
public function register()
	{
        $this->app->singleton('fis', function($app) {
            $mapPath = '';

            if (isset($app['config']['view']['mapPath'])) {
                $mapPath = $app['config']['view']['mapPath'];
            } else {
                $mapPath = realpath(base_path('resources/map'));
            }

            return new FisResource($app['files'], $mapPath);
        });
	}
1317868
public function register()
    {
        $this->bind('logger', function ($server) {
            $name = $server->getProcessName();
            $path = $this->config('runtime_path', '') . '/logs/' . $name . '.log';

            return new Logger($name, $path);
        });
    }
893562
public function register()
    {
        $this->registerAddressValidation();
        $this->registerSimpleAddressValidation();
        $this->registerQuantumView();
        $this->registerTracking();
        $this->registerRate();
        $this->registerTimeInTransit();
        $this->registerLocator();
        $this->registerTradeability();
        $this->registerShipping();
    }
1360283
public function register()
    {
        $this->registerAliases();
        $this->registerCredentials();
        $this->registerOAuthCredentials();
        $this->registerUrlProvider();
        $this->registerAuthProvider();
    }
887940
public function register()
    {
        $this->registerConfig();

        $this->registerClassAliases();

        $this->app->register(RoutingServiceProvider::class);

        $this->app->register(HttpServiceProvider::class);

        $this->registerExceptionHandler();

        $this->registerDispatcher();

        $this->registerAuth();

        $this->registerTransformer();

        $this->registerDocsCommand();
    }
401358
public function register()
    {
        // Configs
        $this->mergeConfigFrom(__DIR__ . '/../../../config/combine-core.php', 'combine-core');
        $this->mergeConfigFrom(__DIR__ . '/../../../config/fractal.php', 'fractal');
        config(['database.connections.combineTesting' => [
            'driver' => 'sqlite',
            'database' => ':memory:',
            'prefix' => '',
        ]]);

        // Factories
        $this->registerEloquentFactoriesFrom(__DIR__ . '/../../../factories');
    }
601122
public function register()
    {
        $config = config('coreplex');

        $this->app->singleton('Coreplex\Core\Contracts\Renderer', function ($app) use ($config) {
            return (new ReflectionClass($config['renderer']['driver']))->newInstanceArgs([$app['view']]);
        });

        $this->app->singleton('Coreplex\Core\Contracts\Session', function ($app) use ($config) {
            return (new ReflectionClass($config['session']['driver']))->newInstanceArgs([$config['session'],
                $app['session.store']]);
        });

        $this->app->alias('Coreplex\Core\Contracts\Renderer', 'coreplex.core.renderer');
        $this->app->alias('Coreplex\Core\Contracts\Session', 'coreplex.core.session');
    }
297351
public function register()
    {
        $this->registerFileConfig();
        $this->registerDatabaseConfig();

        // Bind the concrete types
        $this->app->bind('Concrete\Core\Config\Repository\Repository', 'config');
        $this->app->bind('Illuminate\Config\Repository', 'Concrete\Core\Config\Repository\Repository');
    }
886362
public function register()
    {
        $this->registerConnectionServices();
        $this->registerEloquentFactory();
        $this->registerQueueableEntityResolver();

        Model::setConnectionResolver($this->container['db']);
        Model::setEventDispatcher($this->container['events']);
        Model::clearBootedModels();
        Model::observe(InternalObserve::class);
    }
258996
public function register()
    {
        $app = $this->app;

        /*
        |--------------------------------------------------------------------------
        | Register route service provider.
        |--------------------------------------------------------------------------
        */
        $app->register(RouteServiceProvider::class);

        /*
        |--------------------------------------------------------------------------
        | Collection extensions.
        |--------------------------------------------------------------------------
        */
        $app->register(CollectionExtensions::class);

        /*
        |--------------------------------------------------------------------------
        | Init list of modules.
        |--------------------------------------------------------------------------
        */
        Config::set('typicms.modules', []);

        /*
        |--------------------------------------------------------------------------
        | TypiCMS utilities.
        |--------------------------------------------------------------------------
        */
        $this->app->singleton('typicms', function () {
            return new TypiCMS();
        });

        /*
        |--------------------------------------------------------------------------
        | Disk drivers for original images and crops.
        |--------------------------------------------------------------------------
        */
        $this->app->singleton('filesystem.default.driver', function () {
            return $this->app['filesystem.disk']->getDriver();
        });

        /*
        |--------------------------------------------------------------------------
        | Register TypiCMS commands.
        |--------------------------------------------------------------------------
        */
        $this->commands([
            Create::class,
            Database::class,
            Install::class,
            Publish::class,
        ]);

        /*
        |--------------------------------------------------------------------------
        | Register TypiCMS routes.
        |--------------------------------------------------------------------------
        */
        $this->registerModuleRoutes();
    }
689534
public function register()
    {
        /* Services */
        $this->app->singleton(
            \LaravelRocket\Foundation\Services\MailServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\MailService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\ImageServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\ImageService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\LanguageServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\LanguageService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\SlackServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\SlackService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\FileUploadServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\FileUploadService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\FileUploadS3ServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\FileUploadS3Service::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\FileUploadLocalServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\FileUploadLocalService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\ExportServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\ExportService::class
        );

        /* Helpers */
        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\DateTimeHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\DateTimeHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\LocaleHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\LocaleHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\URLHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\URLHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\CollectionHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\CollectionHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\StringHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\StringHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\PaginationHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\PaginationHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\TypeHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\TypeHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\RedirectHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\RedirectHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\DataHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\DataHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\FileHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\FileHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\ArrayHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\ArrayHelper::class
        );

        //Commands
        $this->app->singleton('command.rocket.export.table', function($app) {
            return new ExportTableToFile($app['files']);
        });

        $this->app->singleton('command.rocket.import.file', function($app) {
            return new ImportFileToTable($app['files']);
        });

        $this->app->singleton('command.rocket.set.name', function($app) {
            return new SetAppName($app['files']);
        });

        $this->commands('command.rocket.export.table', 'command.rocket.import.file', 'command.rocket.set.name');
    }
842388
public function register()
    {
        $this->registerSessionStore();
        $this->registerTranslator();
        $this->registerFlasher();
        $this->registerFlash();
        $this->registerFlashAlias();
    }
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);
        }
    }
1171195
public function register()
    {
        $this->registerManager();
        $this->app->singleton(
            'adminconfiguration', 
            \AvoRed\Framework\AdminConfiguration\Manager::class
        );
    }
765655
public function register()
    {
        $this->app['actions']->listen(
            'widgets_init',
            function ()
            {
                foreach ($this->widgets as $widget)
                {
                    if (class_exists($widget))
                    {
                        register_widget($widget);
                    }
                }
            }
        );
    }
1369821
public function register()
    {
        $this->registerModelBuilder();
        $this->registerMigrationBuilder();
        $this->registerFormBuilder();
        $this->registerCacheBuilder();
        $this->registerBuilderService();
    }
277613
public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/config/config.php', 'laravel-ab'
        );
        $this->app->make('Illuminate\Contracts\Http\Kernel')->prependMiddleware('\ComoCode\LaravelAb\App\Http\Middleware\LaravelAbMiddleware');
        $this->app->bind('Ab', 'ComoCode\LaravelAb\App\Ab');
        $this->registerCompiler();
        $this->registerCommands();
    }