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 +}