Skip to content

Commit fb24c74

Browse files
committed
minor #6748 Fix web/front.php (ranqiangjun)
This PR was merged into the master branch. Discussion ---------- Fix web/front.php ## $controller always return false. $controller = $controllerResolver->getController($request); $arguments = $argumentResolver->getArguments($request, $controller); The two lines before the `try ... catch` should run after: $request->attributes->add($matcher->match($request->getPathInfo())); The three lines already exist inside the `try ... catch` which works fine and properly after removed those two lines. ([http://symfony.com/doc/master/create_framework/http_kernel_controller_resolver.html](http://symfony.com/doc/master/create_framework/http_kernel_controller_resolver.html)) Commits ------- 86bb5ac Fix web/front.php
2 parents 299d3b4 + 86bb5ac commit fb24c74

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

create_framework/http_kernel_controller_resolver.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ Let's conclude with the new version of our framework::
185185
$controllerResolver = new HttpKernel\Controller\ControllerResolver();
186186
$argumentResolver = new HttpKernel\Controller\ArgumentResolver();
187187

188-
$controller = $controllerResolver->getController($request);
189-
$arguments = $argumentResolver->getArguments($request, $controller);
190-
191188
try {
192189
$request->attributes->add($matcher->match($request->getPathInfo()));
193190

0 commit comments

Comments
 (0)