XmlFilesLoader
class XmlFilesLoader extends FilesLoader
Loads validation metadata from a list of XML files.
Methods
__construct(array $paths) Creates a new loader. | from FilesLoader | |
bool | loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. | from LoaderChain |
getFileLoaderInstance($file) {@inheritdoc} |
Details
__construct(array $paths)
Creates a new loader.
Parameters
array | $paths | An array of file paths |
bool loadClassMetadata(ClassMetadata $metadata)
Loads validation metadata into a {@link ClassMetadata} instance.
Parameters
ClassMetadata | $metadata | The metadata to load |
Return Value
bool | Whether the loader succeeded |
getFileLoaderInstance($file)
{@inheritdoc}
Parameters
$file |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Validator/Mapping/Loader/XmlFilesLoader.html