Register the application services.

@return void
427517
public function register()
    {
        $this->app['App\User'] = $this->app['Chuckbe\Chuckcms\Models\User'];

        $this->app->make('Chuckbe\Chuckcms\Controllers\PageController');
        $this->app->make('Chuckbe\Chuckcms\Controllers\Auth\ForgotPasswordController');
        $this->app->make('Chuckbe\Chuckcms\Controllers\Auth\LoginController');
        $this->app->make('Chuckbe\Chuckcms\Controllers\Auth\RegisterController');
        $this->app->make('Chuckbe\Chuckcms\Controllers\Auth\ResetPasswordController');
        
        $this->loadViewsFrom(__DIR__ . '/views', 'chuckcms');
        // publish error views + publish updated lfm views

        $this->app->register(
            'Chuckbe\Chuckcms\Providers\ChuckSiteServiceProvider'
        );

        $this->app->register(
            'Chuckbe\Chuckcms\Providers\ChuckConfigServiceProvider'
        );

        $this->app->register(
            'Chuckbe\Chuckcms\Providers\ChuckMenuServiceProvider'
        );

        $this->app->register(
            'Chuckbe\Chuckcms\Providers\ChuckDashboardSidebarViewComposerServiceProvider'
        );

        $this->app->register(
            'Msurguy\Honeypot\HoneypotServiceProvider'
        );

        $loader = \Illuminate\Foundation\AliasLoader::getInstance();
        $loader->alias('ChuckSite', 'Chuckbe\Chuckcms\Facades\Site');
        $loader->alias('ChuckMenu', 'Chuckbe\Chuckcms\Facades\Menu');
        $loader->alias('Honeypot', 'Msurguy\Honeypot\HoneypotFacade');


        $this->mergeConfigFrom(
            __DIR__ . '/../config/chuckcms.php', 'chuckcms'
        );

        $this->mergeConfigFrom(
            __DIR__ . '/../config/menu.php', 'menu'
        );

        $this->mergeConfigFrom(
            __DIR__ . '/../config/lfm.php', 'lfm'
        );

        $this->mergeConfigFrom(
            __DIR__ . '/../config/lang.php', 'lang'
        );
    }
1150386
public function register()
    {
        $this->registerBindingsServiceProviderMakeCommand();
        $this->registerMakeCommand();
        $this->registerRepositoryInterfaceMakeCommand();
        $this->registerServiceMakeCommand();
        $this->registerTraitMakeCommand();
    }
663366
public function register() {

		$this->app->bind( Attributes::class, Attr::class );

		$this->app->alias( Attributes::class, 'attr' );
	}
165843
public function register()
    {
        $this->bindGuzzle();

        $this->bindAuth();

        $this->bindHttpClient();

        $this->bindApiClient();

        $this->bindTaxonomyMapper();
    }
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) {
                    //
                }
            });
        }
    }
508501
public function register()
    {
        $this->app['httpauth'] = $this->app->share(function ($app) {
            return new Httpauth($app['config']->get('httpauth::config'));
        });
    }
356157
public function register()
    {
        // merge default config
        $this->mergeConfigFrom(
            __DIR__.'/../../config/config.php',
            'httpauth'
        );

        $this->app->singleton('httpauth', function ($app) {
            return new Httpauth($app['config']->get('httpauth'));
        });
    }
841305
public function register()
    {
        $this->registerMediaSort();

        if ($this->app->runningInConsole()) {
            $this->registerResources();
            $this->registerCommands();
        }

        $this->mergeConfigFrom(
            __DIR__ . '/../config/mediasort.php', 'mediasort'
        );
    }
829044
public function register()
    {
        $this->app->singleton('log', function () {
            return $this->createLogger();
        });

        $this->app->alias('log', Log::class);
        $this->app->alias('log', LoggerInterface::class);
        $this->app->alias('log', Writer::class);
    }
575272
public function register()
    {
        $this->registerRepository();

        $this->registerMapper();

        $this->registerCreator();

        $this->registerCommands();

        $this->registerAlias();
    }
200415
public function register()
    {
        $this->app->singleton('laravel-acl.directives.canAtLeast', Directives\CanAtLeastDirective::class);
        $this->app->singleton('laravel-acl.directives.role', Directives\RoleDirective::class);
        $this->app->singleton('laravel-acl.directives.hasRole', Directives\HasRoleDirective::class);
    }
698927
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/../config/roles.php', 'roles');
        $this->loadMigrationsFrom(__DIR__.'/Database/Migrations');
        $this->publishFiles();
        $this->loadSeedsFrom();
    }
140407
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'litecms.page');

        $this->app->bind('page', function ($app) {
            return $this->app->make('Litecms\Page\Page');
        });

        $this->app->bind(
            'Litecms\Page\Interfaces\PageRepositoryInterface',
            \Litecms\Page\Repositories\Eloquent\PageRepository::class
        );

        $this->app->register(\Litecms\Page\Providers\AuthServiceProvider::class);
        $this->app->register(\Litecms\Page\Providers\EventServiceProvider::class);
        $this->app->register(\Litecms\Page\Providers\RouteServiceProvider::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();
    }
440985
public function register()
    {
        $registerConfig = $this->config->getSubConfig(self::REGISTER);
        array_map('register_widget', $registerConfig->getArrayCopy());
    }
775101
public function register()
    {
        $this->mergeConfigFrom($this->configPath(), 'cors');

        $this->app->singleton(CorsService::class, function ($app) {
            $options = $app['config']->get('cors');

            if (isset($options['allowedOrigins'])) {
                foreach ($options['allowedOrigins'] as $origin) {
                    if (strpos($origin, '*') !== false) {
                        $options['allowedOriginsPatterns'][] = $this->convertWildcardToPattern($origin);
                    }
                }
            }

            return new CorsService($options);
        });
    }
920608
public function register() : void
    {
        if ($this->getConfigParam('env') == 'prod') {
            ini_set('display_errors', 'Off');
        } else {
            ini_set('display_errors', 'On');
        }
        error_reporting(E_ALL);
        set_error_handler([$this, 'handleError']);
        set_exception_handler([$this, 'handleException']);
    }