瀏覽代碼

Admin : createEntity

develop
Guillaume 3 年之前
父節點
當前提交
14179372fa
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. +1
    -1
      Controller/Ticket/TicketAdminController.php
  2. +1
    -2
      Controller/User/GroupUserAdminController.php

+ 1
- 1
Controller/Ticket/TicketAdminController.php 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存