XmlFileLoader
class XmlFileLoader extends FileLoader
Loads XML mapping files.
Methods
__construct(string $file) Constructor. | from FileLoader | |
bool | loadClassMetadata(ClassMetadataInterface $classMetadata) Load class metadata. | |
string[] | getMappedClasses() Return the names of the classes mapped in this file. |
Details
__construct(string $file)
Constructor.
Parameters
string | $file | The mapping file to load |
Exceptions
MappingException | if the mapping file does not exist or is not readable |
bool loadClassMetadata(ClassMetadataInterface $classMetadata)
Load class metadata.
Parameters
ClassMetadataInterface | $classMetadata | A metadata |
Return Value
bool |
string[] getMappedClasses()
Return the names of the classes mapped in this file.
Return Value
string[] | The classes names |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Serializer/Mapping/Loader/XmlFileLoader.html