Re-add missing middleware

This commit is contained in:
Toby Zerner 2018-01-01 10:45:26 +10:30
parent 47e4bce4da
commit 8c787cdd51

View File

@ -23,6 +23,7 @@ use Flarum\Http\Middleware\HandleErrors;
use Flarum\Http\Middleware\ParseJsonBody;
use Flarum\Http\Middleware\RememberFromCookie;
use Flarum\Http\Middleware\SetLocale;
use Flarum\Http\Middleware\ShareErrorsFromSession;
use Flarum\Http\Middleware\StartSession;
use Flarum\Http\RouteCollection;
use Flarum\Http\RouteHandlerFactory;
@ -61,6 +62,7 @@ class ForumServiceProvider extends AbstractServiceProvider
$pipe->pipe($app->make(RememberFromCookie::class));
$pipe->pipe($app->make(AuthenticateWithSession::class));
$pipe->pipe($app->make(SetLocale::class));
$pipe->pipe($app->make(ShareErrorsFromSession::class));
event(new ConfigureMiddleware($pipe, 'forum'));