Skip to content

Commit

Permalink
fix: add event listener attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored Jan 6, 2025
1 parent efb9d53 commit 4cfe9d8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
namespace ${NAMESPACE};

use ${EVENT};
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;

#[AsEventListener]
class ${CLASSNAME}
{
public function __invoke(${EVENT_SHORT} $event): void
{

}
}
}

0 comments on commit 4cfe9d8

Please sign in to comment.