merged branch vicb/patch-1 (PR #3481)
Commits
-------
5886c55
[WebProfilerBundle] Router panel: take the request method into account
Discussion
----------
[WebProfilerBundle] Router panel: take the request method into account
Before this change we were always using the default method (i.e. 'GET').
This commit is contained in:
commit
3d0341bcec
@ -41,7 +41,10 @@ class RouterController extends ContainerAware
|
||||
|
||||
$profile = $profiler->loadProfile($token);
|
||||
|
||||
$matcher = new TraceableUrlMatcher($router->getRouteCollection(), $router->getContext());
|
||||
$context = $router->getContext();
|
||||
$context->setMethod($profile->getMethod());
|
||||
$matcher = new TraceableUrlMatcher($router->getRouteCollection(), $context);
|
||||
|
||||
$request = $profile->getCollector('request');
|
||||
|
||||
return $this->container->get('templating')->renderResponse('WebProfilerBundle:Router:panel.html.twig', array(
|
||||
|
Reference in New Issue
Block a user