class StaticMethodLoader implements LoaderInterface
Loads validation metadata by calling a static method on the loaded class.
protected | $methodName |
__construct(string $methodName = 'loadValidatorMetadata') Creates a new loader. | ||
bool | loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. |
Creates a new loader.
string | $methodName | The name of the static method to call |
Loads validation metadata into a {@link ClassMetadata} instance.
ClassMetadata | $metadata |
bool | Whether the loader succeeded |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Validator/Mapping/Loader/StaticMethodLoader.html