您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

GroupUserAdminController.php 722B

12345678910111213141516171819202122
  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\User;
  3. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  4. use Lc\CaracoleBundle\Factory\User\GroupUserFactory;
  5. use Lc\CaracoleBundle\Resolver\MerchantResolver;
  6. use Lc\SovBundle\Container\User\GroupUserContainer;
  7. use Lc\SovBundle\Controller\User\GroupUserAdminController as SovGroupUserAdminController;
  8. abstract class GroupUserAdminController extends SovGroupUserAdminController
  9. {
  10. use AdminControllerTrait;
  11. public function createEntity(string $entityFqcn)
  12. {
  13. return $this->get(GroupUserContainer::class)
  14. ->getFactory()
  15. ->setMerchant($this->get(MerchantResolver::class)->getCurrent())
  16. ->create();
  17. }
  18. }