Skip to content

Commit

Permalink
bug #11364 fix #11362 : ignore channel locale listener on profiler ro…
Browse files Browse the repository at this point in the history
…utes (thi3rry)

This PR was merged into the 1.6 branch.

Discussion
----------

Ignore channel locale listener on profiler search & results routes

| Q               | A
| --------------- | -----
| Branch?         | 1.6, 1.7 or master <!-- see the comment below -->
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #11362
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.6 or 1.7 branches (the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set
-->


Commits
-------

7412415 fix #11362 : ignore channel locale listener on profiler search & results routes
  • Loading branch information
pamil authored Apr 16, 2020
2 parents 3e61a68 + 7412415 commit 69d31fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function restrictRequestLocale(GetResponseEvent $event): void
}

$request = $event->getRequest();
if ($request->attributes && in_array($request->attributes->get('_route'), ['_wdt', '_profiler'])) {
if ($request->attributes && in_array($request->attributes->get('_route'), ['_wdt', '_profiler', '_profiler_search', '_profiler_search_results'])) {
return;
}

Expand Down

0 comments on commit 69d31fc

Please sign in to comment.