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
|
@ -88,8 +88,9 @@ class DIContainer extends SimpleContainer implements IAppContainer{
|
||||||
/**
|
/**
|
||||||
* Middleware
|
* Middleware
|
||||||
*/
|
*/
|
||||||
$this['SecurityMiddleware'] = $this->share(function($c){
|
$app = $this;
|
||||||
return new SecurityMiddleware($this, $c['Request']);
|
$this['SecurityMiddleware'] = $this->share(function($c) use ($app){
|
||||||
|
return new SecurityMiddleware($app, $c['Request']);
|
||||||
});
|
});
|
||||||
|
|
||||||
$middleWares = $this->middleWares;
|
$middleWares = $this->middleWares;
|
||||||
|
|
Loading…
Reference in New Issue