/** * {@inheritDoc} */ public function run(InputInterface $input = null, OutputInterface $output = null) { if (null === $output) { $output = Factory::createOutput(); } return parent::run($input, $output); }
public function __construct($loaded = null) { $this->output = Factory::createOutput(); parent::__construct($this->output); $loaded = null === $loaded ? true : $loaded; $class = new \ReflectionClass(get_parent_class($this)); $prop = $class->getProperty('loaded'); $prop->setAccessible(true); $prop->setValue($this, $loaded); $this->restarted = false; }