Shopware\Install\Command\ShopwareInstallReleaseCommand::validateInput PHP Method

validateInput() protected method

protected validateInput ( Symfony\Component\Console\Input\InputInterface $input )
$input Symfony\Component\Console\Input\InputInterface
    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}'");
        }
    }