refactor(shop_category): migrate admin module to Domain+DI with routing and ajax cleanup
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
namespace admin\Controllers;
|
||||
|
||||
use Domain\Product\ProductRepository;
|
||||
use Domain\Category\CategoryRepository;
|
||||
|
||||
/**
|
||||
* Kontroler masowej edycji produktów.
|
||||
@@ -23,9 +24,11 @@ class ShopProductController
|
||||
*/
|
||||
public function mass_edit(): string
|
||||
{
|
||||
$categoryRepository = new CategoryRepository( $GLOBALS['mdb'] );
|
||||
|
||||
return \Tpl::view( 'shop-product/mass-edit', [
|
||||
'products' => $this->repository->allProductsForMassEdit(),
|
||||
'categories' => \admin\factory\ShopCategory::subcategories( null ),
|
||||
'categories' => $categoryRepository->subcategories( null ),
|
||||
'dlang' => \front\factory\Languages::default_language()
|
||||
] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user