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.
|
- <?php
-
- namespace Lc\CaracoleBundle\Controller\Ticket;
-
- use App\Entity\Ticket\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;
- use Lc\SovBundle\Repository\RepositoryQueryInterface;
-
- abstract class TicketAdminController extends SovTicketAdminController
- {
- use AdminControllerTrait;
-
- public function createEntity(string $entityFqcn)
- {
- return $this->get(TicketContainer::class)
- ->getFactory()
- ->setMerchant($this->get(MerchantResolver::class)->getCurrent())
- ->create();
- }
-
- }
|