From 4718fc2b1d6bc89a9393e84bed254913e8f21f0a Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 18 Feb 2021 17:19:14 +0100 Subject: [PATCH] [EventDispatcher] add missing "dispatcher" property on #[EventListener] --- .../Component/EventDispatcher/Attribute/EventListener.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/EventDispatcher/Attribute/EventListener.php b/src/Symfony/Component/EventDispatcher/Attribute/EventListener.php index e82c69e891..a752673e56 100644 --- a/src/Symfony/Component/EventDispatcher/Attribute/EventListener.php +++ b/src/Symfony/Component/EventDispatcher/Attribute/EventListener.php @@ -22,7 +22,8 @@ class EventListener public function __construct( public ?string $event = null, public ?string $method = null, - public int $priority = 0 + public int $priority = 0, + public ?string $dispatcher = null, ) { } }