|
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
namespace Lc\CaracoleBundle\Controller\Product; |
|
|
|
|
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\KeyValueStore; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext; |
|
|
|
use Lc\CaracoleBundle\Container\Order\OrderShopContainer; |
|
|
@@ -13,6 +14,14 @@ use Symfony\Component\HttpFoundation\Response; |
|
|
|
|
|
|
|
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 |
|
|
|
{ |