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:
Fabien Potencier 2012-03-02 17:38:49 +01:00
commit 3d0341bcec

View File

@ -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(