public function __construct(ProductRepository $productRepo) { parent::__construct(); $this->productRepo = $productRepo; }