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

26 行
665B

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