commit 65a7ac1fab36f615cad41b1f3c65976aabe86bf9 Author: James Date: Sat Dec 26 15:37:24 2020 +0000 initial diff --git a/Command/TestCommand.php b/Command/TestCommand.php new file mode 100644 index 0000000..9be8431 --- /dev/null +++ b/Command/TestCommand.php @@ -0,0 +1,42 @@ +_state=$state; + $this->_objectManager=$objectManager; + $this->_productRepository=$productRepository; + $this->_productAction=$productAction; + + parent::__construct(); + } + + protected function configure(){ + $this->setName('test:test') + ->setDescription('Test') + ; + parent::configure(); + } + + /** + * {@inheritdoc} + */ + protected function execute(InputInterface $input, OutputInterface $output){ + $output->writeln(get_class($this->_productAction)); + } +} diff --git a/etc/di.xml b/etc/di.xml new file mode 100644 index 0000000..c654e98 --- /dev/null +++ b/etc/di.xml @@ -0,0 +1,11 @@ + + + + + + Test\Test\Command\TestCommand + + + + + diff --git a/etc/module.xml b/etc/module.xml new file mode 100644 index 0000000..7b163bf --- /dev/null +++ b/etc/module.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/registration.php b/registration.php new file mode 100644 index 0000000..eca7f88 --- /dev/null +++ b/registration.php @@ -0,0 +1,7 @@ +