Neos\Flow\Validation\ValidatorResolver::getValidatorImplementationClassNames PHP Метод

getValidatorImplementationClassNames() публичный статический Метод

Returns all class names implementing the ValidatorInterface.
public static getValidatorImplementationClassNames ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
Результат array Array of class names implementing ValidatorInterface indexed by class name
    public static function getValidatorImplementationClassNames($objectManager)
    {
        $reflectionService = $objectManager->get(ReflectionService::class);
        $classNames = $reflectionService->getAllImplementationClassNamesForInterface(ValidatorInterface::class);
        return array_flip($classNames);
    }