From 4cfe9d84e11e42b5a126907eabcb733e798472c0 Mon Sep 17 00:00:00 2001 From: Shyim Date: Mon, 6 Jan 2025 16:13:12 +0100 Subject: [PATCH] fix: add event listener attribute --- .../fileTemplates/j2ee/php/Shopware PHP Event Listener.php.ft | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/fileTemplates/j2ee/php/Shopware PHP Event Listener.php.ft b/src/main/resources/fileTemplates/j2ee/php/Shopware PHP Event Listener.php.ft index bfe4394..4325e81 100644 --- a/src/main/resources/fileTemplates/j2ee/php/Shopware PHP Event Listener.php.ft +++ b/src/main/resources/fileTemplates/j2ee/php/Shopware PHP Event Listener.php.ft @@ -3,11 +3,13 @@ namespace ${NAMESPACE}; use ${EVENT}; +use Symfony\Component\EventDispatcher\Attribute\AsEventListener; +#[AsEventListener] class ${CLASSNAME} { public function __invoke(${EVENT_SHORT} $event): void { } -} \ No newline at end of file +}