From c67ff1a021935df1bf2c5c74f8285832ecbe0696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Mon, 12 Dec 2016 13:49:07 +0100 Subject: [PATCH] Fix the priority of POST_RESPOND --- src/EventListener/EventPriorities.php | 2 +- tests/EventListener/EventPrioritiesTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventListener/EventPriorities.php b/src/EventListener/EventPriorities.php index 85471300cc2..6c1f6ff79e3 100644 --- a/src/EventListener/EventPriorities.php +++ b/src/EventListener/EventPriorities.php @@ -27,5 +27,5 @@ final class EventPriorities const PRE_WRITE = 33; const POST_WRITE = 31; const PRE_RESPOND = 9; - const POST_RESPOND = 7; + const POST_RESPOND = 0; } diff --git a/tests/EventListener/EventPrioritiesTest.php b/tests/EventListener/EventPrioritiesTest.php index 4d842015ae7..6b9c7d563bb 100644 --- a/tests/EventListener/EventPrioritiesTest.php +++ b/tests/EventListener/EventPrioritiesTest.php @@ -29,6 +29,6 @@ public function testConstants() $this->assertEquals(33, EventPriorities::PRE_WRITE); $this->assertEquals(31, EventPriorities::POST_WRITE); $this->assertEquals(9, EventPriorities::PRE_RESPOND); - $this->assertEquals(7, EventPriorities::POST_RESPOND); + $this->assertEquals(0, EventPriorities::POST_RESPOND); } }