This commit is contained in:
team3
2026-06-03 22:05:20 +02:00
parent d7e8df6876
commit 40de56c27b
5119 changed files with 552560 additions and 24 deletions

View File

@@ -0,0 +1,14 @@
<?= "<?php\n" ?>
namespace <?= $namespace; ?>;
<?= $use_statements; ?>
final class <?= $class_name."\n" ?>
{
#[AsEventListener<?php if (!$class_event): ?>(event: <?= $event ?>)<?php endif ?>]
public function <?= $method_name ?>(<?= $event_arg ?>): void
{
// ...
}
}

View File

@@ -0,0 +1,20 @@
<?= "<?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 ?>',
];
}
}