|
|
|
|
|
|
|
|
|
|
|
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Controller\EasyAdminController; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Controller\EasyAdminController; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Event\EasyAdminEvents; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Event\EasyAdminEvents; |
|
|
|
|
|
use FOS\UserBundle\Model\UserManagerInterface; |
|
|
use Lc\ShopBundle\Context\MerchantInterface; |
|
|
use Lc\ShopBundle\Context\MerchantInterface; |
|
|
use Symfony\Component\Security\Core\Security; |
|
|
use Symfony\Component\Security\Core\Security; |
|
|
|
|
|
|
|
|
class AdminController extends EasyAdminController |
|
|
class AdminController extends EasyAdminController |
|
|
{ |
|
|
{ |
|
|
protected $security; |
|
|
protected $security; |
|
|
|
|
|
protected $userManager; |
|
|
|
|
|
|
|
|
public function __construct(Security $security) |
|
|
|
|
|
|
|
|
public function __construct(Security $security, UserManagerInterface $userManager) |
|
|
{ |
|
|
{ |
|
|
$this->security = $security; |
|
|
$this->security = $security; |
|
|
|
|
|
$this->userManager = $userManager ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected function createListQueryBuilder($entityClass, $sortDirection, $sortField = null, $dqlFilter = null) |
|
|
protected function createListQueryBuilder($entityClass, $sortDirection, $sortField = null, $dqlFilter = null) |