Copied!

Loads XML mapping files.

CloneableInstantiable
Methods
public Symfony\Component\Serializer\Mapping\Loader\FileLoader::__construct(string $file)
 
  • param string $file The mapping file to load
  • throws \MappingException if the mapping file does not exist or is not readable
public getMappedClasses() : array
 

Return the names of the classes mapped in this file.

  • return string[]
public loadClassMetadata(Symfony\Component\Serializer\Mapping\ClassMetadataInterface $classMetadata) : bool
Properties
protected string Symfony\Component\Serializer\Mapping\Loader\FileLoader::$file
Properties
private ?array $classes = NULL
 

An array of {@class \SimpleXMLElement} instances.

  • var \SimpleXMLElement[]|null
Methods
private getClassesFromXml() : array
private parseContext(SimpleXMLElement $nodes) : array
private parseFile(string $file) : SimpleXMLElement
 

Parses an XML File.

  • throws \MappingException
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration