diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-10 20:51:03 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-10 20:51:03 +0200 |
commit | 763da4258e14c782e9fba2cf522fa266acecf298 (patch) | |
tree | 8385b44a3b1fb338d2149dc38b31ce526233035b /lib | |
parent | 2fc6fb36adfb8213b384fb23dc95d42087b1df40 (diff) | |
download | nextcloud-server-763da4258e14c782e9fba2cf522fa266acecf298.tar.gz nextcloud-server-763da4258e14c782e9fba2cf522fa266acecf298.zip |
fix the middleware registration process in the container
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/appframework/dependencyinjection/dicontainer.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php index 78224ea54c0..beba71052f8 100644 --- a/lib/private/appframework/dependencyinjection/dicontainer.php +++ b/lib/private/appframework/dependencyinjection/dicontainer.php @@ -92,12 +92,11 @@ class DIContainer extends SimpleContainer implements IAppContainer{ return new SecurityMiddleware($app, $c['Request']); }); - $middleWares = $this->middleWares; - $this['MiddlewareDispatcher'] = $this->share(function($c) use ($middleWares) { + $this['MiddlewareDispatcher'] = $this->share(function($c) { $dispatcher = new MiddlewareDispatcher(); $dispatcher->registerMiddleware($c['SecurityMiddleware']); - foreach($middleWares as $middleWare) { + foreach($this->middleWares as $middleWare) { $dispatcher->registerMiddleware($c[$middleWare]); } |