Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

30 lines
672B

  1. <?php
  2. namespace Lc\CaracoleBundle\EventSubscriber;
  3. use Doctrine\ORM\EntityManagerInterface;
  4. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  5. use Symfony\Component\HttpKernel\KernelEvents;
  6. class OpeningEventSubscriber implements EventSubscriberInterface
  7. {
  8. protected EntityManagerInterface $entityManager;
  9. public function __construct(
  10. EntityManagerInterface $entityManager
  11. ) {
  12. $this->entityManager = $entityManager;
  13. }
  14. public static function getSubscribedEvents()
  15. {
  16. return [
  17. KernelEvents::CONTROLLER => ['initOpenings']
  18. ];
  19. }
  20. public function initOpenings()
  21. {
  22. }
  23. }