Increase priority of AddRequestFormatsListener

This commit is contained in:
Chris Wilkinson 2018-12-13 10:20:24 +00:00
parent d12a6d0330
commit 9bf313660d
3 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,11 @@
CHANGELOG CHANGELOG
========= =========
4.3.0
-----
* increased the priority of `Symfony\Component\HttpKernel\EventListener\AddRequestFormatsListener`
4.2.0 4.2.0
----- -----

View File

@ -45,6 +45,6 @@ class AddRequestFormatsListener implements EventSubscriberInterface
*/ */
public static function getSubscribedEvents() public static function getSubscribedEvents()
{ {
return array(KernelEvents::REQUEST => array('onKernelRequest', 1)); return array(KernelEvents::REQUEST => array('onKernelRequest', 100));
} }
} }

View File

@ -46,7 +46,7 @@ class AddRequestFormatsListenerTest extends TestCase
public function testRegisteredEvent() public function testRegisteredEvent()
{ {
$this->assertEquals( $this->assertEquals(
array(KernelEvents::REQUEST => array('onKernelRequest', 1)), array(KernelEvents::REQUEST => array('onKernelRequest', 100)),
AddRequestFormatsListener::getSubscribedEvents() AddRequestFormatsListener::getSubscribedEvents()
); );
} }