src/Kunstmaan/GeneratorBundle/Command/KunstmaanGenerateCommand.php
private function setInputAndOutput(InputInterface $input, OutputInterface $output)
    {
        if (is_null($this->assistant)) {
            $this->assistant = new CommandAssistant();
            $this->assistant->setQuestionHelper($this->getQuestionHelper());
            $this->assistant->setKernel($this->getApplication()->getKernel());
        }
        $this->assistant->setOutput($output);
        $this->assistant->setInput($input);
    }
private function setInputAndOutput(InputInterface $input, OutputInterface $output)
    {
        if (is_null($this->assistant)) {
            $this->assistant = new CommandAssistant();
            $this->assistant->setQuestionHelper($this->getQuestionHelper());
            $this->assistant->setKernel($this->getApplication()->getKernel());
        }
        $this->assistant->setOutput($output);
        $this->assistant->setInput($input);
    }
private function setInputAndOutput ( InputInterface $ input , OutputInterface $ output ) { if ( is_null ( $ this -> assistant ) ) { $ this -> assistant = new CommandAssistant ( ) ; $ this -> assistant -> setQuestionHelper ( $ this -> getQuestionHelper ( ) ) ; $ this -> assistant -> setKernel ( $ this -> getApplication ( ) -> getKernel ( ) ) ; } $ this -> assistant -> setOutput ( $ output ) ; $ this -> assistant -> setInput ( $ input ) ; }
Create the CommandAssistant.

@param InputInterface  $input
@param OutputInterface $output
Create the CommandAssistant .