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