Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10422dc

Browse files
trsteel88xabbuh
authored andcommitted
Encourage use of constants
1 parent 0d05c85 commit 10422dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doctrine/event_listeners_subscribers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ interface and have an event method for each event it subscribes to::
179179
public function getSubscribedEvents()
180180
{
181181
return array(
182-
'postPersist',
183-
'postUpdate',
182+
\Doctrine\ORM\Events::postPersist => 'postPersist',
183+
\Doctrine\ORM\Events::postUpdate => 'postUpdate',
184184
);
185185
}
186186

0 commit comments

Comments
 (0)