_state=$state; $this->_objectManager=$objectManager; $this->_productRepository=$productRepository; parent::__construct(); } protected function configure(){ $this->setName('test:test') ->setDescription('Test') ; parent::configure(); } protected function execute(InputInterface $input, OutputInterface $output){ $this->_productAction=$this->_objectManager->get('\Magento\Catalog\Model\ResourceModel\Product\Action'); $output->writeln(get_class($this->_productAction)); } }