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.

GroupUserAdminController.php 665B

3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
12345678910111213141516171819202122232425
  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. }