Flarum\Formatter\FormatterServiceProvider::register PHP Méthode

register() public méthode

public register ( )
    public function register()
    {
        $this->app->singleton('flarum.formatter', function (Container $container) {
            return new Formatter($container->make('cache.store'), $container->make('events'), $this->app->storagePath() . '/formatter');
        });
        $this->app->alias('flarum.formatter', 'Flarum\\Formatter\\Formatter');
    }
FormatterServiceProvider