Skip to content

Commit

Permalink
bug #12575 [WebProfilerBundle] Remove usage of app.request in search …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
fabpot committed Nov 26, 2014
2 parents 4a1a0ed + d3451fc commit 6a59db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -249,6 +249,7 @@ public function searchBarAction(Request $request)
'start' => $start,
'end' => $end,
'limit' => $limit,
'request' => $request,
)), 200, array('Content-Type' => 'text/html'));
}

Expand Down
Expand Up @@ -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">
Expand Down

0 comments on commit 6a59db5

Please sign in to comment.