Skip to content

Commit 81bff78

Browse files
committed
Feat: add constants for PRE and POST serialize
1 parent 5252559 commit 81bff78

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/EventListener/EventPriorities.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ final class EventPriorities
3030
const POST_VALIDATE = 63;
3131
const PRE_WRITE = 33;
3232
const POST_WRITE = 31;
33+
const PRE_SERIALIZE = 17;
34+
const POST_SERIALIZE = 15;
3335
const PRE_RESPOND = 9;
3436
// kernel.response
3537
const POST_RESPOND = 0;

tests/EventListener/EventPrioritiesTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function testConstants()
3131
$this->assertEquals(63, EventPriorities::POST_VALIDATE);
3232
$this->assertEquals(33, EventPriorities::PRE_WRITE);
3333
$this->assertEquals(31, EventPriorities::POST_WRITE);
34+
$this->assertEquals(17, EventPriorities::PRE_SERIALIZE);
35+
$this->assertEquals(15, EventPriorities::POST_SERIALIZE);
3436
$this->assertEquals(9, EventPriorities::PRE_RESPOND);
3537
$this->assertEquals(0, EventPriorities::POST_RESPOND);
3638
}

0 commit comments

Comments
 (0)