@@ 72-81 (lines=10) @@ | ||
69 | * @param InputInterface $input |
|
70 | * @param OutputInterface $output |
|
71 | */ |
|
72 | private function setInputAndOutput(InputInterface $input, OutputInterface $output) |
|
73 | { |
|
74 | if (is_null($this->assistant)) { |
|
75 | $this->assistant = new CommandAssistant(); |
|
76 | $this->assistant->setQuestionHelper($this->getQuestionHelper()); |
|
77 | $this->assistant->setKernel($this->getApplication()->getKernel()); |
|
78 | } |
|
79 | $this->assistant->setOutput($output); |
|
80 | $this->assistant->setInput($input); |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * Do the interaction with the end user. |
@@ 67-76 (lines=10) @@ | ||
64 | ); |
|
65 | } |
|
66 | ||
67 | private function initAssistant($input, $output) |
|
68 | { |
|
69 | if (is_null($this->assistant)) { |
|
70 | $this->assistant = new CommandAssistant(); |
|
71 | $this->assistant->setQuestionHelper($this->getQuestionHelper()); |
|
72 | $this->assistant->setKernel($this->getApplication()->getKernel()); |
|
73 | } |
|
74 | $this->assistant->setOutput($output); |
|
75 | $this->assistant->setInput($input); |
|
76 | } |
|
77 | ||
78 | protected function interact(InputInterface $input, OutputInterface $output) |
|
79 | { |