From 65a7ac1fab36f615cad41b1f3c65976aabe86bf9 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 26 Dec 2020 15:37:24 +0000 Subject: [PATCH] initial --- Command/TestCommand.php | 42 +++++++++++++++++++++++++++++++++++++++++ etc/di.xml | 11 +++++++++++ etc/module.xml | 5 +++++ registration.php | 7 +++++++ 4 files changed, 65 insertions(+) create mode 100644 Command/TestCommand.php create mode 100644 etc/di.xml create mode 100644 etc/module.xml create mode 100644 registration.php 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 @@ +