Flarum\Core\CoreServiceProvider::register PHP Метод

register() публичный Метод

public register ( )
    public function register()
    {
        $this->app->singleton('flarum.gate', function ($app) {
            return new Gate($app, function () {
                throw new RuntimeException('You must set the gate user with forUser()');
            });
        });
        $this->app->alias('flarum.gate', 'Illuminate\\Contracts\\Auth\\Access\\Gate');
        $this->app->alias('flarum.gate', 'Flarum\\Core\\Access\\Gate');
        $this->registerAvatarsFilesystem();
        $this->app->register('Flarum\\Core\\Notification\\NotificationServiceProvider');
        $this->app->register('Flarum\\Core\\Search\\SearchServiceProvider');
        $this->app->register('Flarum\\Formatter\\FormatterServiceProvider');
    }