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
This commit is contained in:
commit
6a59db5a08
@ -249,6 +249,7 @@ class ProfilerController
|
||||
'start' => $start,
|
||||
'end' => $end,
|
||||
'limit' => $limit,
|
||||
'request' => $request,
|
||||
)), 200, array('Content-Type' => 'text/html'));
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
</select>
|
||||
<div class="clear-fix"></div>
|
||||
<label for="url">URL</label>
|
||||
<input type="url" name="url" id="url" value="{{ url }}" placeholder="e.g. {{ app.request.baseUrl }}">
|
||||
<input type="url" name="url" id="url" value="{{ url }}" placeholder="e.g. {{ request.baseUrl }}">
|
||||
<div class="clear-fix"></div>
|
||||
<label for="token">Token</label>
|
||||
<input type="text" name="token" id="token" value="{{ token }}" placeholder="e.g. 1f321b">
|
||||
|
Reference in New Issue
Block a user