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.

PointSaleAdminController.php 952B

пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\PointSale;
  3. use Lc\CaracoleBundle\Container\PointSale\PointSaleContainer;
  4. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  5. use Lc\SovBundle\Controller\AbstractAdminController;
  6. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  7. abstract class PointSaleAdminController extends AbstractAdminController
  8. {
  9. use AdminControllerTrait;
  10. public function getRepositoryQuery() :RepositoryQueryInterface
  11. {
  12. return $this->get(PointSaleContainer::class)->getRepositoryQuery();
  13. }
  14. public function configureFields(string $pageName): iterable
  15. {
  16. return $this->getPointSaleContainer()
  17. ->getFieldDefinition()
  18. ->getFields($pageName);
  19. }
  20. public function createEntity(string $entityFqcn)
  21. {
  22. return $this->get(PointSaleContainer::class)
  23. ->getFactory()
  24. ->create($this->getMerchantCurrent());
  25. }
  26. }