Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Adjust service priority, avoid route not found exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
webflo committed Mar 25, 2015
1 parent be53e1f commit 888c91b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EventSubscriber/ProxySubscriber.php
Expand Up @@ -121,7 +121,8 @@ public function checkFileOrigin(GetResponseEvent $event) {
* An array of event listener definitions.
*/
static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = array('checkFileOrigin');
// Priority 240 is after ban middleware but before page cache.
$events[KernelEvents::REQUEST][] = array('checkFileOrigin', 240);
return $events;
}

Expand Down

0 comments on commit 888c91b

Please sign in to comment.