/** * @param OutputInterface $output * @param ShellHelperInterface $shellHelper * @param object $fs */ public function __construct(OutputInterface $output = null, ShellHelperInterface $shellHelper = null, $fs = null) { $this->output = $output ?: new NullOutput(); $this->shellHelper = $shellHelper ?: new ShellHelper(); $this->shellHelper->setOutput($this->output); $this->fs = $fs ?: new Filesystem(); }
/** * {@inheritdoc} */ public function setOutput(OutputInterface $output) { if ($this->shellHelper instanceof OutputAwareInterface) { $this->shellHelper->setOutput($output); } }
/** * @inheritdoc */ public function setOutput(OutputInterface $output) { $this->output = $output; $this->shellHelper->setOutput($output); }