[HttpKernel] Give higher priority to adding request formats
This commit is contained in:
parent
1dfb1080b2
commit
9edb457e44
|
@ -52,6 +52,6 @@ class AddRequestFormatsListener implements EventSubscriberInterface
|
||||||
*/
|
*/
|
||||||
public static function getSubscribedEvents()
|
public static function getSubscribedEvents()
|
||||||
{
|
{
|
||||||
return array(KernelEvents::REQUEST => 'onKernelRequest');
|
return array(KernelEvents::REQUEST => array('onKernelRequest', 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ class AddRequestFormatsListenerTest extends \PHPUnit_Framework_TestCase
|
||||||
public function testRegisteredEvent()
|
public function testRegisteredEvent()
|
||||||
{
|
{
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
array(KernelEvents::REQUEST => 'onKernelRequest'),
|
array(KernelEvents::REQUEST => array('onKernelRequest', 1)),
|
||||||
AddRequestFormatsListener::getSubscribedEvents()
|
AddRequestFormatsListener::getSubscribedEvents()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue