- <?php
-
- namespace Lc\CaracoleBundle\Controller\User;
-
- use Lc\CaracoleBundle\Controller\AdminControllerTrait;
- use Lc\CaracoleBundle\Factory\User\GroupUserFactory;
- use Lc\CaracoleBundle\Resolver\MerchantResolver;
- use Lc\SovBundle\Container\User\GroupUserContainer;
- use Lc\SovBundle\Controller\User\GroupUserAdminController as SovGroupUserAdminController;
-
- abstract class GroupUserAdminController extends SovGroupUserAdminController
- {
- use AdminControllerTrait;
-
- public function createEntity(string $entityFqcn)
- {
- return $this->get(GroupUserContainer::class)
- ->getFactory()
- ->setMerchant($this->get(MerchantResolver::class)->getCurrent())
- ->create();
- }
- }
|