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