示例#1
0
 /**
  * @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();
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function setOutput(OutputInterface $output)
 {
     if ($this->shellHelper instanceof OutputAwareInterface) {
         $this->shellHelper->setOutput($output);
     }
 }
示例#3
0
 /**
  * @inheritdoc
  */
 public function setOutput(OutputInterface $output)
 {
     $this->output = $output;
     $this->shellHelper->setOutput($output);
 }