/** * execute * * Set pomm dependent variables. * * @see Command */ protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $results = array_keys($this->getPomm()->getSessionBuilders()); switch (count($results)) { case 0: $output->writeln("There are no session builders in current Pomm instance."); break; case 1: $output->writeln("There is <info>1</info> builder in current Pomm instance:"); $this->showResultList($output, $results); break; default: $output->writeln(sprintf("There are <info>%d</info> builders in current Pomm instance:", count($results))); $this->showResultList($output, $results); } }
/** * execute * * Set pomm dependent variables. * * @see Command */ protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $this->config_name = $input->getArgument('config-name'); }