getValidationRegistry()->getValidators($schema, $field) as $name => $validators) { foreach ($validators as $validator) { $result[tao_helpers_Uri::encode($name)][] = tao_helpers_form_FormFactory::getValidator(...$validator); } } return $result; } private function getValidationRegistry(): ValidationRegistry { /** @noinspection PhpIncompatibleReturnTypeInspection */ return $this->getServiceLocator()->get(ValidationRegistry::class); } }