From f1c0d657563ce27d83dad93bded5b6eb96045003 Mon Sep 17 00:00:00 2001 From: Fedir Zinchuk Date: Wed, 24 May 2023 11:06:37 +0300 Subject: [PATCH] A better description for getSubscribedEvents --- src/SubscriberInterface.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SubscriberInterface.php b/src/SubscriberInterface.php index bf2871b1..7538c163 100644 --- a/src/SubscriberInterface.php +++ b/src/SubscriberInterface.php @@ -17,6 +17,8 @@ interface SubscriberInterface { /** * Returns an array of events this subscriber will listen to. + * The code must not depend on runtime state. + * All logic depending on runtime state must be put into the individual methods handling the events. * * The array keys are event names and the value can be: *