From 86bb5acfb0239daac706a07de69865f081975fcb Mon Sep 17 00:00:00 2001 From: Qiangjun Ran Date: Mon, 11 Jul 2016 23:22:06 +0800 Subject: [PATCH] Fix web/front.php $controller always return false. $controller = $controllerResolver->getController($request); $arguments = $argumentResolver->getArguments($request, $controller); The two lines above should run after: $request->attributes->add($matcher->match($request->getPathInfo())); --- create_framework/http_kernel_controller_resolver.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/create_framework/http_kernel_controller_resolver.rst b/create_framework/http_kernel_controller_resolver.rst index 75f58cef2f4..ad1a5715d6e 100644 --- a/create_framework/http_kernel_controller_resolver.rst +++ b/create_framework/http_kernel_controller_resolver.rst @@ -185,9 +185,6 @@ Let's conclude with the new version of our framework:: $controllerResolver = new HttpKernel\Controller\ControllerResolver(); $argumentResolver = new HttpKernel\Controller\ArgumentResolver(); - $controller = $controllerResolver->getController($request); - $arguments = $argumentResolver->getArguments($request, $controller); - try { $request->attributes->add($matcher->match($request->getPathInfo()));