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 701B

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