mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 11:34:36 +08:00
Re-add missing middleware
This commit is contained in:
parent
f2ce4e11e2
commit
292fe06001
|
@ -23,6 +23,7 @@ use Flarum\Http\Middleware\HandleErrors;
|
||||||
use Flarum\Http\Middleware\ParseJsonBody;
|
use Flarum\Http\Middleware\ParseJsonBody;
|
||||||
use Flarum\Http\Middleware\RememberFromCookie;
|
use Flarum\Http\Middleware\RememberFromCookie;
|
||||||
use Flarum\Http\Middleware\SetLocale;
|
use Flarum\Http\Middleware\SetLocale;
|
||||||
|
use Flarum\Http\Middleware\ShareErrorsFromSession;
|
||||||
use Flarum\Http\Middleware\StartSession;
|
use Flarum\Http\Middleware\StartSession;
|
||||||
use Flarum\Http\RouteCollection;
|
use Flarum\Http\RouteCollection;
|
||||||
use Flarum\Http\RouteHandlerFactory;
|
use Flarum\Http\RouteHandlerFactory;
|
||||||
|
@ -61,6 +62,7 @@ class ForumServiceProvider extends AbstractServiceProvider
|
||||||
$pipe->pipe($app->make(RememberFromCookie::class));
|
$pipe->pipe($app->make(RememberFromCookie::class));
|
||||||
$pipe->pipe($app->make(AuthenticateWithSession::class));
|
$pipe->pipe($app->make(AuthenticateWithSession::class));
|
||||||
$pipe->pipe($app->make(SetLocale::class));
|
$pipe->pipe($app->make(SetLocale::class));
|
||||||
|
$pipe->pipe($app->make(ShareErrorsFromSession::class));
|
||||||
|
|
||||||
event(new ConfigureMiddleware($pipe, 'forum'));
|
event(new ConfigureMiddleware($pipe, 'forum'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user