mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #8156 from owncloud/fix-middleware-container
fix the middleware registration process in the container
This commit is contained in:
commit
71de321869
1 changed files with 2 additions and 2 deletions
|
|
@ -92,8 +92,8 @@ class DIContainer extends SimpleContainer implements IAppContainer{
|
|||
return new SecurityMiddleware($app, $c['Request']);
|
||||
});
|
||||
|
||||
$middleWares = $this->middleWares;
|
||||
$this['MiddlewareDispatcher'] = $this->share(function($c) use ($middleWares) {
|
||||
$middleWares = &$this->middleWares;
|
||||
$this['MiddlewareDispatcher'] = $this->share(function($c) use (&$middleWares) {
|
||||
$dispatcher = new MiddlewareDispatcher();
|
||||
$dispatcher->registerMiddleware($c['SecurityMiddleware']);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue