Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ff2197

Browse files
committed
merged branch Seldaek/profiler_route (PR #3426)
Commits ------- 957bbcb [WebProfiler] Add default route to access the profiler more easily Discussion ---------- [WebProfiler] Add default route to access the profiler more easily When you have the toolbar disabled, it's pretty annoying to reach the _profiler, I never remember what to type to get something except `/_profiler`. This shows the last ten runs which is quite useful.
2 parents be92973 + 957bbcb commit 0ff2197

File tree

1 file changed

+10
-0
lines changed
  • src/Symfony/Bundle/WebProfilerBundle/Resources/config/routing

1 file changed

+10
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/config/routing/profiler.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,14 @@
3232
<default key="_controller">WebProfilerBundle:Profiler:panel</default>
3333
</route>
3434

35+
<route id="_profiler_redirect" pattern="/">
36+
<default key="_controller">FrameworkBundle:Redirect:redirect</default>
37+
<default key="route">_profiler_search_results</default>
38+
<default key="token">empty</default>
39+
<default key="ip"></default>
40+
<default key="url"></default>
41+
<default key="method"></default>
42+
<default key="limit">10</default>
43+
</route>
44+
3545
</routes>

0 commit comments

Comments
 (0)