Compare commits
3 Commits
fix
...
workaround
Author | SHA1 | Date | |
---|---|---|---|
|
6ca13b13c9 | ||
|
813b30d210 | ||
|
c1ce7c9d6f |
@@ -15,13 +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\Proxy $productAction
|
||||
\Magento\Framework\App\State $state
|
||||
) {
|
||||
$this->_state=$state;
|
||||
$this->_objectManager=$objectManager;
|
||||
$this->_productRepository=$productRepository;
|
||||
$this->_productAction=$productAction;
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
@@ -34,7 +32,7 @@ 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));
|
||||
$this->_productAction->updateAttributes([1], ['name'=>'nice'], 1);
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
|
||||
<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>
|
||||
|
||||
|
Reference in New Issue
Block a user