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 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 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 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::setRootNodeName()

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

XmlEncoder::getRootNodeName()

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

XmlEncoder::encode()

scalar encode(mixed $data, string $format, array $context = array()) Encodes data into the given format. Parameters mixed $data Data to encode string $format Format name array $context options that normalizers/encoders have access to Return Value scalar Exceptions UnexpectedValueException