Increase priority of AddRequestFormatsListener
This commit is contained in:
parent
d12a6d0330
commit
9bf313660d
@ -1,6 +1,11 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
4.3.0
|
||||||
|
-----
|
||||||
|
|
||||||
|
* increased the priority of `Symfony\Component\HttpKernel\EventListener\AddRequestFormatsListener`
|
||||||
|
|
||||||
4.2.0
|
4.2.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user