/** * {@inheritdoc} */ public function execute(InputInterface $input, OutputInterface $output) { $exerciseSuiteName = $input->getOption('suite'); if (null !== $exerciseSuiteName && !isset($this->suiteConfigurations[$exerciseSuiteName])) { throw new SuiteNotFoundException(sprintf('`%s` suite is not found or has not been properly registered.', $exerciseSuiteName), $exerciseSuiteName); } foreach ($this->suiteConfigurations as $name => $config) { if (null !== $exerciseSuiteName && $exerciseSuiteName !== $name) { continue; } $this->registry->registerSuiteConfiguration($name, $config['type'], $config['settings']); } }