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 745B

3 years ago
3 years ago
3 years ago
3 years ago
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. ->getFieldList($pageName);
  14. }
  15. public function createEntity(string $entityFqcn)
  16. {
  17. return $this->get(PointSaleContainer::class)
  18. ->getFactory()
  19. ->create($this->getMerchantCurrent());
  20. }
  21. }