Shopware\PluginCreator\Command\CreatePluginCommand::validateNamespace PHP Method

validateNamespace() public method

Make sure the namespace is one of core, backend, frontend
public validateNamespace ( $input ) : mixed
$input
return mixed
    public function validateNamespace($input)
    {
        if (!in_array(strtolower($input), array('frontend', 'core', 'backend'))) {
            throw new \InvalidArgumentException('Namespace mus be one of FRONTEND, BACKEND or CORE');
        }
        return $input;
    }