Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

TicketAdminController.php 611B

pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
123456789101112131415161718192021
  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Ticket;
  3. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  4. use Lc\SovBundle\Controller\Ticket\TicketAdminController as SovTicketAdminController;
  5. use Lc\CaracoleBundle\Factory\Ticket\TicketFactory;
  6. class TicketAdminController extends SovTicketAdminController
  7. {
  8. use AdminControllerTrait;
  9. public function createEntity(string $entityFqcn)
  10. {
  11. $merchantResolver = $this->get('merchant_resolver');
  12. $factory = new TicketFactory();
  13. $factory->setMerchant($merchantResolver->getCurrent());
  14. return $factory->create();
  15. }
  16. }