您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

PointSaleAdminController.php 742B

1234567891011121314151617181920212223242526
  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. abstract class PointSaleAdminController extends AbstractAdminController
  7. {
  8. use AdminControllerTrait;
  9. public function configureFields(string $pageName): iterable
  10. {
  11. return $this->getPointSaleContainer()
  12. ->getFieldDefinition()
  13. ->getFields($pageName);
  14. }
  15. public function createEntity(string $entityFqcn)
  16. {
  17. return $this->get(PointSaleContainer::class)
  18. ->getFactory()
  19. ->create($this->getMerchantCurrent());
  20. }
  21. }