Do DI on registered middleware as well

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-10-16 22:52:48 +02:00
parent f7319e139d
commit 098ab7af4b
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
); );
foreach($this->middleWares as $middleWare) { foreach($this->middleWares as $middleWare) {
$dispatcher->registerMiddleware($c[$middleWare]); $dispatcher->registerMiddleware($c->query($middleWare));
} }
$dispatcher->registerMiddleware( $dispatcher->registerMiddleware(