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-18 16:14:44 +0200 |
commit | 3405342ab6dbf5696baf14ffcf791de04b83090e (patch) | |
tree | 266d54aa9e3944f682964080772ada7c75931d39 /lib | |
parent | 980b11f0960100a5210a40b575bb9fa99e2c9e6c (diff) | |
download | nextcloud-server-3405342ab6dbf5696baf14ffcf791de04b83090e.tar.gz nextcloud-server-3405342ab6dbf5696baf14ffcf791de04b83090e.zip |
merge dicontainer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/appframework/dependencyinjection/dicontainer.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php index e2ea974e104..a8c5942b62b 100644 --- a/lib/private/appframework/dependencyinjection/dicontainer.php +++ b/lib/private/appframework/dependencyinjection/dicontainer.php @@ -93,13 +93,12 @@ 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) { - $dispatcher->registerMiddleware($middleWare); + foreach($this->middleWares as $middleWare) { + $dispatcher->registerMiddleware($c[$middleWare]); } return $dispatcher; |