8000 bug #12575 [WebProfilerBundle] Remove usage of app.request in search … · symfony/symfony@6a59db5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a59db5

Browse files
committed
bug #12575 [WebProfilerBundle] Remove usage of app.request in search bar template (jeromemacias)
This PR was merged into the 2.6 branch. Discussion ---------- [WebProfilerBundle] Remove usage of app.request in search bar template This PR removes the last usage of the global Twig variable `app.request` in Symfony. | Q | A | ------------- | --- | Bug fix? | kinda | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Commits ------- d3451fc [WebProfilerBundle] Remove usage of app.request in search bar template
2 parents 4a1a0ed + d3451fc commit 6a59db5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ public function searchBarAction(Request $request)
249249
'start' => $start,
250250
'end' => $end,
251251
'limit' => $limit,
252+
'request' => $request,
252253
)), 200, array('Content-Type' => 'text/html'));
253254
}
254255

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/search.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</select>
1616
<div class="clear-fix"></div>
1717
<label for="url">URL</label>
18-
<input type="url" name="url" id="url" value="{{ url }}" placeholder="e.g. {{ app.request.baseUrl }}">
18+
<input type="url" name="url" id="url" value="{{ url }}" placeholder="e.g. {{ request.baseUrl }}">
1919
<div class="clear-fix"></div>
2020
<label for="token">Token</label>
2121
<input type="text" name="token" id="token" value="{{ token }}" placeholder="e.g. 1f321b">

0 commit comments

Comments
 (0)
0