diff --git a/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php b/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php
index c90c26df59..05d96f3670 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php
+++ b/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php
@@ -42,11 +42,11 @@ class RouterController extends ContainerAware
$profile = $profiler->loadProfile($token);
$matcher = new TraceableUrlMatcher($router->getRouteCollection(), $router->getContext());
- $pathinfo = $profile->getCollector('request')->getPathInfo();
+ $request = $profile->getCollector('request');
return $this->container->get('templating')->renderResponse('WebProfilerBundle:Router:panel.html.twig', array(
- 'pathinfo' => $pathinfo,
- 'traces' => $matcher->getTraces($pathinfo),
+ 'request' => $request,
+ 'traces' => $matcher->getTraces($request->getPathInfo()),
));
}
}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Router/panel.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Router/panel.html.twig
index 5c27f46fa0..f8a0f0e2ff 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Router/panel.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Router/panel.html.twig
@@ -1,16 +1,26 @@
-
Routing for "{{ pathinfo }}"
+Routing for "{{ request.pathinfo }}"
-
-
- Route name |
- Pattern |
- Log |
-
- {% for trace in traces %}
-
- {{ trace.name }} |
- {{ trace.pattern }} |
- {{ trace.log }} |
-
- {% endfor %}
-
+
+ - Route: {{ request.route }}
+ -
+ Route parameters:
+ {% include 'WebProfilerBundle:Profiler:table.html.twig' with { 'data': request.routeParams } only %}
+
+
+ -
+ Route matching:
+
+
+ Route name |
+ Pattern |
+ Log |
+
+ {% for trace in traces %}
+
+ {{ trace.name }} |
+ {{ trace.pattern }} |
+ {{ trace.log }} |
+
+ {% endfor %}
+
+
\ No newline at end of file