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.

26 lines
794B

  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Ticket;
  3. use App\Entity\Ticket\Ticket;
  4. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  5. use Lc\CaracoleBundle\Resolver\MerchantResolver;
  6. use Lc\SovBundle\Container\Ticket\TicketContainer;
  7. use Lc\SovBundle\Controller\Ticket\TicketAdminController as SovTicketAdminController;
  8. use Lc\CaracoleBundle\Factory\Ticket\TicketFactory;
  9. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  10. abstract class TicketAdminController extends SovTicketAdminController
  11. {
  12. use AdminControllerTrait;
  13. public function createEntity(string $entityFqcn)
  14. {
  15. return $this->get(TicketContainer::class)
  16. ->getFactory()
  17. ->setMerchant($this->get(MerchantResolver::class)->getCurrent())
  18. ->create();
  19. }
  20. }