Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix web/front.php #6748

Merged
merged 1 commit into from
Aug 2, 2016
Merged

Fix web/front.php #6748

merged 1 commit into from
Aug 2, 2016

Conversation

ranqiangjun
Copy link
Contributor

@ranqiangjun ranqiangjun commented Jul 11, 2016

$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)

$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()));
@xabbuh
Copy link
Member

xabbuh commented Jul 11, 2016

👍 LGTM

Status: Reviewed

@weaverryan
Copy link
Member

I agree also! Thanks Qiangjun!

@weaverryan weaverryan merged commit 86bb5ac into symfony:master Aug 2, 2016
weaverryan added a commit that referenced this pull request Aug 2, 2016
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants