This commit is contained in:
James 2020-12-26 15:43:04 +00:00
parent 813b30d210
commit 6ca13b13c9

View File

@ -15,14 +15,11 @@ class TestCommand extends Command{
public function __construct(
\Magento\Catalog\Model\ProductRepository $productRepository,
\Magento\Framework\ObjectManagerInterface $objectManager,
\Magento\Framework\App\State $state//,
//\Magento\Catalog\Model\ResourceModel\Product\Action $productAction
\Magento\Framework\App\State $state
) {
$this->_state=$state;
$this->_objectManager=$objectManager;
$this->_productRepository=$productRepository;
//$this->_productAction=$productAction;
//$this->_productAction=$this->_objectManager->get('\Magento\Catalog\Model\ResourceModel\Product\Action');
parent::__construct();
}