Compare commits
2 Commits
workaround
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
cb5a8204da | ||
|
90457f1fda |
@ -15,11 +15,13 @@ class TestCommand extends Command{
|
||||
public function __construct(
|
||||
\Magento\Catalog\Model\ProductRepository $productRepository,
|
||||
\Magento\Framework\ObjectManagerInterface $objectManager,
|
||||
\Magento\Framework\App\State $state
|
||||
\Magento\Framework\App\State $state,
|
||||
\Magento\Catalog\Model\ResourceModel\Product\Action $productAction
|
||||
) {
|
||||
$this->_state=$state;
|
||||
$this->_objectManager=$objectManager;
|
||||
$this->_productRepository=$productRepository;
|
||||
$this->_productAction=$productAction;
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
@ -32,7 +34,6 @@ class TestCommand extends Command{
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output){
|
||||
$this->_productAction=$this->_objectManager->get('\Magento\Catalog\Model\ResourceModel\Product\Action');
|
||||
$output->writeln(get_class($this->_productAction));
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
|
||||
<module name="Test_Test" setup_version="0.0.0"/>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
|
||||
<module name="Test_Test" setup_version="0.0.0">
|
||||
<sequence>Magento_Catalog</sequence>
|
||||
</module>
|
||||
</config>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user