diff --git a/packages/Webkul/Product/src/Http/Controllers/ProductController.php b/packages/Webkul/Product/src/Http/Controllers/ProductController.php index c2224e161..8ce8c6332 100755 --- a/packages/Webkul/Product/src/Http/Controllers/ProductController.php +++ b/packages/Webkul/Product/src/Http/Controllers/ProductController.php @@ -7,8 +7,6 @@ use Illuminate\Http\Response; use Illuminate\Support\Facades\Event; use Webkul\Product\Http\Requests\ProductForm; use Webkul\Product\Repositories\ProductRepository as Product; -use Webkul\Product\Repositories\ProductGridRepository as ProductGrid; -use Webkul\Product\Repositories\ProductFlatRepository as ProductFlat; use Webkul\Product\Repositories\ProductAttributeValueRepository as ProductAttributeValue; use Webkul\Attribute\Repositories\AttributeFamilyRepository as AttributeFamily; use Webkul\Category\Repositories\CategoryRepository as Category; @@ -58,21 +56,20 @@ class ProductController extends Controller protected $product; /** - * ProductGrid Repository object + * ProductAttributeValueRepository object * * @var array */ - protected $productGrid; - protected $productFlat; protected $productAttributeValue; /** * Create a new controller instance. * - * @param \Webkul\Attribute\Repositories\AttributeFamilyRepository $attributeFamily - * @param \Webkul\Category\Repositories\CategoryRepository $category - * @param \Webkul\Inventory\Repositories\InventorySourceRepository $inventorySource - * @param \Webkul\Product\Repositories\ProductRepository $product + * @param \Webkul\Attribute\Repositories\AttributeFamilyRepository $attributeFamily + * @param \Webkul\Category\Repositories\CategoryRepository $category + * @param \Webkul\Inventory\Repositories\InventorySourceRepository $inventorySource + * @param \Webkul\Product\Repositories\ProductRepository $product + * @param \Webkul\Product\Repositories\ProductAttributeValueRepository $productAttributeValue * @return void */ public function __construct( @@ -80,9 +77,8 @@ class ProductController extends Controller Category $category, InventorySource $inventorySource, Product $product, - ProductGrid $productGrid, - ProductFlat $productFlat, - ProductAttributeValue $productAttributeValue) + ProductAttributeValue $productAttributeValue + ) { $this->attributeFamily = $attributeFamily; @@ -92,10 +88,6 @@ class ProductController extends Controller $this->product = $product; - $this->productGrid = $productGrid; - - $this->productFlat = $productFlat; - $this->productAttributeValue = $productAttributeValue; $this->_config = request('_config'); @@ -173,8 +165,6 @@ class ProductController extends Controller $inventorySources = $this->inventorySource->all(); - $allProducts = $this->productGrid->all(); - return view($this->_config['view'], compact('product', 'categories', 'inventorySources', 'allProducts')); }