protected function validateInput(InputInterface $input) { $language = $input->getOption('shop-locale'); if (!in_array($language, array('en_GB', 'de_DE'))) { throw new \RuntimeException("Invalid locale: '{$language}'"); } }