Kaynağa Gözat

Admin : createEntity

develop
Guillaume 3 yıl önce
ebeveyn
işleme
14179372fa
2 değiştirilmiş dosya ile 2 ekleme ve 3 silme
  1. +1
    -1
      Controller/Ticket/TicketAdminController.php
  2. +1
    -2
      Controller/User/GroupUserAdminController.php

+ 1
- 1
Controller/Ticket/TicketAdminController.php Dosyayı Görüntüle



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 Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet