|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Lc\CaracoleBundle\Controller\Product; |
|
|
namespace Lc\CaracoleBundle\Controller\Product; |
|
|
|
|
|
|
|
|
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\KeyValueStore; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\KeyValueStore; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext; |
|
|
use Lc\CaracoleBundle\Container\Order\OrderShopContainer; |
|
|
use Lc\CaracoleBundle\Container\Order\OrderShopContainer; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
abstract class ProductFamilyAdminController extends AbstractAdminController |
|
|
abstract class ProductFamilyAdminController extends AbstractAdminController |
|
|
{ |
|
|
{ |
|
|
|
|
|
public function configureCrud(Crud $crud): Crud |
|
|
|
|
|
{ |
|
|
|
|
|
$crud = parent::configureCrud($crud); |
|
|
|
|
|
|
|
|
|
|
|
$crud->setDefaultSort(['id' => 'DESC']); |
|
|
|
|
|
|
|
|
|
|
|
return $crud; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function getRepositoryQuery() :RepositoryQueryInterface |
|
|
public function getRepositoryQuery() :RepositoryQueryInterface |
|
|
{ |
|
|
{ |