Sfoglia il codice sorgente

Admin : createEntity

develop
Guillaume 3 anni fa
parent
commit
14179372fa
2 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. +1
    -1
      Controller/Ticket/TicketAdminController.php
  2. +1
    -2
      Controller/User/GroupUserAdminController.php

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

@@ -42,7 +42,7 @@ abstract class TicketAdminController extends AbstractAdminController

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

public function configureAssets(Assets $assets): Assets

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

@@ -5,7 +5,6 @@ namespace Lc\SovBundle\Controller\User;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
use Lc\SovBundle\Container\User\GroupUserContainer;
use Lc\SovBundle\Controller\AbstractAdminController;
use Lc\SovBundle\Factory\User\GroupUserFactory;
use Lc\SovBundle\Field\StatusField;
use Lc\SovBundle\Repository\RepositoryQueryInterface;

@@ -27,6 +26,6 @@ abstract class GroupUserAdminController extends AbstractAdminController

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

Loading…
Annulla
Salva