Skip to content

Commit 7e121df

Browse files
Merge branch '3.4' into 4.4
* 3.4: [FrameworkBundle] display actual target for error in AssetsInstallCommand Remove patches for Doctrine bugs and deprecations [DI][EventDispatcher] added contract for implementation
2 parents abc8e36 + 14d978f commit 7e121df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

EventSubscriberInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ interface EventSubscriberInterface
4040
* * ['eventName' => ['methodName', $priority]]
4141
* * ['eventName' => [['methodName1', $priority], ['methodName2']]]
4242
*
43+
* The code must not depend on runtime state as it will only be called at compile time.
44+
* All logic depending on runtime state must be put into the individual methods handling the events.
45+
*
4346
* @return array The event names to listen to
4447
*/
4548
public static function getSubscribedEvents();

0 commit comments

Comments
 (0)