|
|
@@ -1,30 +0,0 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
namespace Lc\CaracoleBundle\EventSubscriber; |
|
|
|
|
|
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
|
|
|
use Symfony\Component\HttpKernel\KernelEvents; |
|
|
|
|
|
|
|
class OpeningEventSubscriber implements EventSubscriberInterface |
|
|
|
{ |
|
|
|
protected EntityManagerInterface $entityManager; |
|
|
|
|
|
|
|
public function __construct( |
|
|
|
EntityManagerInterface $entityManager |
|
|
|
) { |
|
|
|
$this->entityManager = $entityManager; |
|
|
|
} |
|
|
|
|
|
|
|
public static function getSubscribedEvents() |
|
|
|
{ |
|
|
|
return [ |
|
|
|
KernelEvents::CONTROLLER => ['initOpenings'] |
|
|
|
]; |
|
|
|
} |
|
|
|
|
|
|
|
public function initOpenings() |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
} |