diff options
author | VicDeo <dubiniuk@owncloud.com> | 2013-10-23 05:35:33 -0700 |
---|---|---|
committer | VicDeo <dubiniuk@owncloud.com> | 2013-10-23 05:35:33 -0700 |
commit | 959b0f912559ae0c6751cb5c0d14a9be5b58f19b (patch) | |
tree | a7394673272042aa9a359b5e7cd12250e8ec29e2 /lib/private/appframework | |
parent | 76f831979b7d15b60c2324ce7a2904a10725af7a (diff) | |
parent | 3c710696e8ae72ff2f264d2df8b20cd364fe5003 (diff) | |
download | nextcloud-server-959b0f912559ae0c6751cb5c0d14a9be5b58f19b.tar.gz nextcloud-server-959b0f912559ae0c6751cb5c0d14a9be5b58f19b.zip |
Merge pull request #5458 from owncloud/fixing-5222-master
php 5.3 compatibility regarding OC\DB\Connection fixed
Diffstat (limited to 'lib/private/appframework')
-rw-r--r-- | lib/private/appframework/dependencyinjection/dicontainer.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php index ae2c5e8546b..e2ea974e104 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; |