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

  1. <?php
  2. namespace Lc\PietroBundle\Controller\Territory;
  3. use Lc\PietroBundle\Container\Territory\TerritoryContainer;
  4. use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
  5. use Lc\PietroBundle\Controller\AbstractAdminController;
  6. abstract class TerritoryAdminController extends AbstractAdminController
  7. {
  8. public function createEntity(string $entityFqcn)
  9. {
  10. return $this->getTerritoryContainer()->getFactory()->create();
  11. }
  12. public function configureFields(string $pageName): iterable
  13. {
  14. return [
  15. TextField::new('devAlias'),
  16. TextField::new('name'),
  17. ];
  18. }
  19. }