W3cubDocs

/Symfony 2.7

Symfony\Component\Validator\Mapping\Loader\XmlFileLoader

class XmlFileLoader extends FileLoader

Methods

__construct(string $file)

Constructor.

from FileLoader
bool loadClassMetadata(ClassMetadata $metadata)

Load a Class Metadata.

Details

public __construct(string $file)

Constructor.

Parameters

string $file The mapping file to load

Exceptions

MappingException if the mapping file does not exist
MappingException if the mapping file is not readable

public bool loadClassMetadata(ClassMetadata $metadata)

Load a Class Metadata.

Parameters

ClassMetadata $metadata A metadata

Return Value

bool

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.html