protected function registerViewComposers()
    {
        $this->app->extend('view', function (Factory $view) {
            $view->composer('fluxbb::layout.main', 'FluxBB\View\AlertsComposer');
            $view->composer('fluxbb::layout.main', 'FluxBB\View\GlobalsComposer');
            $view->composer('fluxbb::admin.layout.main', 'FluxBB\View\GlobalsComposer');

            return $view;
        });
    }