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.

24 lines
687B

  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Order;
  3. use Lc\CaracoleBundle\Container\Order\OrderStatusContainer;
  4. use Lc\CaracoleBundle\Controller\AbstractAdminController;
  5. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  6. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  7. abstract class OrderStatusAdminController extends AbstractAdminController
  8. {
  9. use AdminControllerTrait;
  10. public function getRepositoryQuery() :RepositoryQueryInterface
  11. {
  12. return $this->get(OrderStatusContainer::class)->getRepositoryQuery();
  13. }
  14. public function createEntity(string $entityFqcn)
  15. {
  16. return $this->getOrderStatusContainer()->getFactory()->create();
  17. }
  18. }