fixing php 5.3.3 error:
Undefined variable: this lib/private/appframework/dependencyinjection/dicontainer.php:92
This commit is contained in:
parent
d86508e36d
commit
7f1432600c
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue