Przeglądaj źródła

Admin : createEntity

develop
Guillaume 3 lat temu
rodzic
commit
14179372fa
2 zmienionych plików z 2 dodań i 3 usunięć
  1. +1
    -1
      Controller/Ticket/TicketAdminController.php
  2. +1
    -2
      Controller/User/GroupUserAdminController.php

+ 1
- 1
Controller/Ticket/TicketAdminController.php Wyświetl plik

@@ -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 Wyświetl plik

@@ -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();
}
}

Ładowanie…
Anuluj
Zapisz