From 070aaf7513de9ea0ad2e36effdded18c9803fedd Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 13 Jun 2017 14:59:08 +0200 Subject: [PATCH] fix using $this in closure was not expected $this value --- src/Service/Router/Route.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/Router/Route.php b/src/Service/Router/Route.php index d3f5657..d9ac183 100644 --- a/src/Service/Router/Route.php +++ b/src/Service/Router/Route.php @@ -114,7 +114,7 @@ public function bindToRouter(RouterInterface $router) $response, $next, $route->getNameOfInjectedParam(), - $this->hasToUseRequest() + $route->hasToUseRequest() ); return $response; @@ -130,7 +130,7 @@ public function bindToRouter(RouterInterface $router) $response, $next, $route->getNameOfInjectedParam(), - $this->hasToUseRequest() + $route->hasToUseRequest() ); return $response;