protected function resolveValidatorObjectName($validatorType)
{
$validatorType = ltrim($validatorType, '\\');
$validatorClassNames = static::getValidatorImplementationClassNames($this->objectManager);
if ($this->objectManager->isRegistered($validatorType) && isset($validatorClassNames[$validatorType])) {
return $validatorType;
}
if (strpos($validatorType, ':') !== false) {
list($packageName, $packageValidatorType) = explode(':', $validatorType);
$possibleClassName = sprintf('%s\\Validation\\Validator\\%sValidator', str_replace('.', '\\', $packageName), $this->getValidatorType($packageValidatorType));
} else {
$possibleClassName = sprintf('Neos\\Flow\\Validation\\Validator\\%sValidator', $this->getValidatorType($validatorType));
}
if ($this->objectManager->isRegistered($possibleClassName) && isset($validatorClassNames[$possibleClassName])) {
return $possibleClassName;
}
return false;
}