Pārlūkot izejas kodu

Admin : createEntity

develop
Guillaume pirms 3 gadiem
vecāks
revīzija
14179372fa
2 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. +1
    -1
      Controller/Ticket/TicketAdminController.php
  2. +1
    -2
      Controller/User/GroupUserAdminController.php

+ 1
- 1
Controller/Ticket/TicketAdminController.php Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt