|
1234567891011121314151617181920212223 |
- <?php
-
- namespace Lc\CaracoleBundle\Controller\Ticket;
-
- use Lc\CaracoleBundle\Controller\AdminControllerTrait;
- use Lc\CaracoleBundle\Resolver\MerchantResolver;
- use Lc\SovBundle\Container\Ticket\TicketContainer;
- use Lc\SovBundle\Controller\Ticket\TicketAdminController as SovTicketAdminController;
- use Lc\CaracoleBundle\Factory\Ticket\TicketFactory;
-
- class TicketAdminController extends SovTicketAdminController
- {
- use AdminControllerTrait;
-
- public function createEntity(string $entityFqcn)
- {
- return $this->get(TicketContainer::class)
- ->getFactory()
- ->setMerchant($this->get(MerchantResolver::class)->getCurrent())
- ->create();
- }
-
- }
|