You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OpeningEventSubscriber.php 672B

пре 3 година
пре 3 година
123456789101112131415161718192021222324252627282930
  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. }