/** * @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Output\OutputInterface $output */ protected function initialize(InputInterface $input, OutputInterface $output) { parent::initialize($input, $output); $configPath = $input->getOption('config'); $this->config = $configPath ? Configuration::fromFile($configPath) : Configuration::defaults('php-semver-checker'); $inputMerger = new InputMerger(); $inputMerger->merge($input, $this->config); // Set overrides LevelMapping::setOverrides($this->config->getLevelMapping()); }
public function getLevel() { return LevelMapping::getLevelForCode($this->getCode()); }