diff options
Diffstat (limited to 'vendor/doctrine/event-manager/src/EventSubscriber.php')
| -rw-r--r-- | vendor/doctrine/event-manager/src/EventSubscriber.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/doctrine/event-manager/src/EventSubscriber.php b/vendor/doctrine/event-manager/src/EventSubscriber.php new file mode 100644 index 0000000..89cef55 --- /dev/null +++ b/vendor/doctrine/event-manager/src/EventSubscriber.php | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\Common; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * An EventSubscriber knows what events it is interested in. | ||
| 9 | * If an EventSubscriber is added to an EventManager, the manager invokes | ||
| 10 | * {@link getSubscribedEvents} and registers the subscriber as a listener for all | ||
| 11 | * returned events. | ||
| 12 | */ | ||
| 13 | interface EventSubscriber | ||
| 14 | { | ||
| 15 | /** | ||
| 16 | * Returns an array of events this subscriber wants to listen to. | ||
| 17 | * | ||
| 18 | * @return string[] | ||
| 19 | */ | ||
| 20 | public function getSubscribedEvents(); | ||
| 21 | } | ||
