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 Symfony\Component\Serializer\Mapping\Loader\FileLoader::$file = NULL
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
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration