Browse Source

Admin : createEntity

develop
Guillaume 3 years ago
parent
commit
14179372fa
2 changed files with 2 additions and 3 deletions
  1. +1
    -1
      Controller/Ticket/TicketAdminController.php
  2. +1
    -2
      Controller/User/GroupUserAdminController.php

+ 1
- 1
Controller/Ticket/TicketAdminController.php View File



public function createEntity(string $entityFqcn) public function createEntity(string $entityFqcn)
{ {
return $this->get(TicketContainer::class)->getFactory()->create();
return $this->getTicketContainer()->getFactory()->create();
} }


public function configureAssets(Assets $assets): Assets public function configureAssets(Assets $assets): Assets

+ 1
- 2
Controller/User/GroupUserAdminController.php View File

use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
use Lc\SovBundle\Container\User\GroupUserContainer; use Lc\SovBundle\Container\User\GroupUserContainer;
use Lc\SovBundle\Controller\AbstractAdminController; use Lc\SovBundle\Controller\AbstractAdminController;
use Lc\SovBundle\Factory\User\GroupUserFactory;
use Lc\SovBundle\Field\StatusField; use Lc\SovBundle\Field\StatusField;
use Lc\SovBundle\Repository\RepositoryQueryInterface; use Lc\SovBundle\Repository\RepositoryQueryInterface;




public function createEntity(string $entityFqcn) public function createEntity(string $entityFqcn)
{ {
return $this->get(GroupUserContainer::class)->getFactory()->create();
return $this->getGroupUserContainer()->getFactory()->create();
} }
} }

Loading…
Cancel
Save