/** * {@inheritdoc} */ public function doRun(InputInterface $input, OutputInterface $output) { $this->registerCommands(); parent::doRun($input, $output); if ($this->getCommandName($input) == 'list' && $this->container->hasParameter('console.warning')) { $io = new DrupalStyle($input, $output); $io->warning($this->trans($this->container->getParameter('console.warning'))); } }
/** * {@inheritdoc} */ public function doRun(InputInterface $input, OutputInterface $output) { $this->registerGenerators(); $this->registerCommands(); $clear = $this->container->get('console.configuration_manager')->getConfiguration()->get('application.clear') ?: false; if ($clear === true || $clear === 'true') { $output->write(sprintf("c")); } parent::doRun($input, $output); if ($this->getCommandName($input) == 'list' && $this->container->hasParameter('console.warning')) { $io = new DrupalStyle($input, $output); $io->warning($this->trans($this->container->getParameter('console.warning'))); } }