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 p

XmlFileLoader

class XmlFileLoader extends FileLoader Loads XML mapping files. Methods __construct(string $file) Constructor. from FileLoader bool loadClassMetadata(ClassMetadataInterface $classMetadata) Load class metadata. 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(

XmlFileLoader

class XmlFileLoader extends FileLoader Loads validation metadata from an XML file. Constants DEFAULT_NAMESPACE The namespace to load constraints from by default. Methods __construct(string $file) Creates a new loader. from FileLoader bool loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. Details __construct(string $file) Creates a new loader. Parameters string $file The mappi

XmlFileLoader

class XmlFileLoader extends FileLoader XmlFileLoader loads XML routing files. Constants NAMESPACE_URI SCHEME_PATH Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null) Imports a resource. from FileLoader LoaderInterface resolve(mixed $

XmlFileLoader

class XmlFileLoader extends FileLoader XmlFileLoader loads XML files service definitions. Constants NS Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null) Imports a resource. from FileLoader LoaderInterface resolve(mixed $resource, strin

XmlEncoder::supportsEncoding()

bool supportsEncoding(string $format) Checks whether the serializer can encode to given format. Parameters string $format format name Return Value bool

XmlEncoder::supportsDecoding()

bool supportsDecoding(string $format) Checks whether the deserializer can decode from given format. Parameters string $format format name Return Value bool

XmlEncoder::getRootNodeName()

string getRootNodeName() Returns the root node name. Return Value string

XmlEncoder::setRootNodeName()

setRootNodeName(string $name) Sets the root node name. Parameters string $name root node name

XmlEncoder::decode()

mixed decode(string $data, string $format, array $context = array()) Decodes a string into PHP data. Parameters string $data Data to decode string $format Format name array $context options that decoders have access to The format parameter specifies which format the data is in; valid values depend on the specific implementation. Authors implementing this interface are encouraged to document which formats they support in a non-inherited phpdoc comment. Return Value mixed Excep