Files
awd/vendor/symfony/maker-bundle/templates/event/Subscriber.tpl.php
2025-09-30 09:35:59 +01:00

21 lines
380 B
PHP

<?= "<?php\n" ?>
namespace <?= $namespace; ?>;
<?= $use_statements; ?>
class <?= $class_name ?> implements EventSubscriberInterface
{
public function <?= $method_name ?>(<?= $event_arg ?>): void
{
// ...
}
public static function getSubscribedEvents(): array
{
return [
<?= $event ?> => '<?= $method_name ?>',
];
}
}