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.

TicketAdminController.php 611B

3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
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. }