Skip to content
Snippets Groups Projects
Commit 71de3218 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #8156 from owncloud/fix-middleware-container

fix the middleware registration process in the container
parents 2a2aabbd 4af72a07
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment