7 Commits

Author SHA1 Message Date
James
086c622186 actually fix 2021-01-12 14:15:04 +00:00
James
dd1e6d9969 fix 2021-01-12 14:13:11 +00:00
James
58c719c950 correct mod decleration 2021-01-12 14:09:41 +00:00
James
4024170b2c proper test 2021-01-12 12:26:20 +00:00
James
5be41daf92 use proxy class 2021-01-12 12:19:31 +00:00
James
cb5a8204da add fix suggested in https://github.com/magento/magento2/issues/31465 2021-01-02 15:52:10 +00:00
James
90457f1fda tidy 2020-12-26 15:41:52 +00:00
2 changed files with 5 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ class TestCommand extends Command{
\Magento\Catalog\Model\ProductRepository $productRepository,
\Magento\Framework\ObjectManagerInterface $objectManager,
\Magento\Framework\App\State $state,
\Magento\Catalog\Model\ResourceModel\Product\Action $productAction
\Magento\Catalog\Model\ResourceModel\Product\Action\Proxy $productAction
) {
$this->_state=$state;
$this->_objectManager=$objectManager;
@@ -33,10 +33,8 @@ class TestCommand extends Command{
parent::configure();
}
/**
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output){
$output->writeln(get_class($this->_productAction));
$this->_productAction->updateAttributes([1], ['name'=>'nice'], 1);
}
}

View File

@@ -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">
<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"/>
</config>