Flarum\Forum\ForumServiceProvider::register PHP Méthode

register() public méthode

public register ( )
    public function register()
    {
        $this->app->singleton(UrlGenerator::class, function () {
            return new UrlGenerator($this->app, $this->app->make('flarum.forum.routes'));
        });
        $this->app->singleton('flarum.forum.routes', function () {
            return new RouteCollection();
        });
    }