You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GroupUserAdminController.php 629B

1234567891011121314151617181920
  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\User;
  3. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  4. use Lc\CaracoleBundle\Factory\User\GroupUserFactory;
  5. use Lc\SovBundle\Controller\User\GroupUserAdminController as SovGroupUserAdminController;
  6. abstract class GroupUserAdminController extends SovGroupUserAdminController
  7. {
  8. use AdminControllerTrait;
  9. public function createEntity(string $entityFqcn)
  10. {
  11. $factory = new GroupUserFactory();
  12. $currentMerchant = $this->get('merchant_resolver')->getCurrent();
  13. $factory->setMerchant($currentMerchant);
  14. return $factory->create();
  15. }
  16. }