Files
LaLiga-BackEnd/vendor/symfony/maker-bundle/src/Resources/skeleton/event/Subscriber.tpl.php
T
2024-05-18 02:28:01 +02: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 ?>',
];
}
}