summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-08 23:14:08 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-08 23:14:08 +0200
commit7bd5352509e9d2dd51bded32144719bd83296fc1 (patch)
tree716cf1b715a17542d8cb70ebc0199bd36e5ab1f1 /lib
parent8a06f2e12882a883e1aaae41e7450d17cf746946 (diff)
downloadnextcloud-server-7bd5352509e9d2dd51bded32144719bd83296fc1.tar.gz
nextcloud-server-7bd5352509e9d2dd51bded32144719bd83296fc1.zip
php 5.3 compatibility for \OC\AppFramework\DependencyInjection\DIContainer
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/dependencyinjection/dicontainer.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php
index 3755d45fa09..e62b72fd973 100644
--- a/lib/private/appframework/dependencyinjection/dicontainer.php
+++ b/lib/private/appframework/dependencyinjection/dicontainer.php
@@ -89,11 +89,12 @@ class DIContainer extends SimpleContainer implements IAppContainer{
return new SecurityMiddleware($c['API'], $c['Request']);
});
- $this['MiddlewareDispatcher'] = $this->share(function($c){
+ $middleWares = $this->middleWares;
+ $this['MiddlewareDispatcher'] = $this->share(function($c) use ($middleWares) {
$dispatcher = new MiddlewareDispatcher();
$dispatcher->registerMiddleware($c['SecurityMiddleware']);
- foreach($this->middleWares as $middleWare) {
+ foreach($middleWares as $middleWare) {
$dispatcher->registerMiddleware($middleWare);
}