summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-22 09:29:17 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-22 09:29:17 +0200
commit7f1432600c12c86ca35239c1297dee392fbd08f7 (patch)
tree6921971e9059d77f0bc905d8bbf0929e4451be7c /lib/private/appframework
parentd86508e36dec794007694d522ddf767037c3e798 (diff)
downloadnextcloud-server-7f1432600c12c86ca35239c1297dee392fbd08f7.tar.gz
nextcloud-server-7f1432600c12c86ca35239c1297dee392fbd08f7.zip
fixing php 5.3.3 error:
Undefined variable: this lib/private/appframework/dependencyinjection/dicontainer.php:92
Diffstat (limited to 'lib/private/appframework')
-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 81910df6990..0054b153f91 100644
--- a/lib/private/appframework/dependencyinjection/dicontainer.php
+++ b/lib/private/appframework/dependencyinjection/dicontainer.php
@@ -88,8 +88,9 @@ class DIContainer extends SimpleContainer implements IAppContainer{
/**
* Middleware
*/
- $this['SecurityMiddleware'] = $this->share(function($c){
- return new SecurityMiddleware($this, $c['Request']);
+ $app = $this;
+ $this['SecurityMiddleware'] = $this->share(function($c) use ($app){
+ return new SecurityMiddleware($app, $c['Request']);
});
$middleWares = $this->middleWares;