summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-04-10 20:51:03 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-04-18 16:14:44 +0200
commit3405342ab6dbf5696baf14ffcf791de04b83090e (patch)
tree266d54aa9e3944f682964080772ada7c75931d39 /lib
parent980b11f0960100a5210a40b575bb9fa99e2c9e6c (diff)
downloadnextcloud-server-3405342ab6dbf5696baf14ffcf791de04b83090e.tar.gz
nextcloud-server-3405342ab6dbf5696baf14ffcf791de04b83090e.zip
merge dicontainer
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/dependencyinjection/dicontainer.php7
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;