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.

22 satır
611B

  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. }