Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- <?php
-
- namespace Lc\CaracoleBundle\EventSubscriber;
-
- use Doctrine\ORM\EntityManagerInterface;
- use Lc\CaracoleBundle\Definition\MerchantSettingDefinitionInterface;
- use Lc\CaracoleBundle\Factory\Setting\MerchantSettingFactory;
- use Lc\CaracoleBundle\Factory\Setting\SectionSettingFactory;
- use Lc\CaracoleBundle\Model\Section\SectionInterface;
- use Lc\CaracoleBundle\Definition\SectionSettingDefinitionInterface;
- use Lc\CaracoleBundle\Repository\Merchant\MerchantRepository;
- use Lc\CaracoleBundle\Repository\Section\OpeningRepositoryQuery;
- use Lc\CaracoleBundle\Repository\Section\SectionRepository;
- use Symfony\Component\EventDispatcher\EventSubscriberInterface;
- use Symfony\Component\HttpKernel\KernelEvents;
-
- class OpeningEventSubscriber implements EventSubscriberInterface
- {
- protected $entityManager;
- protected $openingRepositoryQuery;
-
- public function __construct(
- EntityManagerInterface $entityManager,
- OpeningRepositoryQuery $openingRepositoryQuery
- ) {
- $this->entityManager = $entityManager;
- $this->openingRepositoryQuery = $openingRepositoryQuery;
- }
-
- public static function getSubscribedEvents()
- {
- return [
- KernelEvents::CONTROLLER => ['initOpenings']
- ];
- }
-
- public function initOpenings()
- {
-
- }
-
- }
|