YamlFileLoader

class YamlFileLoader extends FileLoader YAML File Loader. 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(ClassM

YamlFileLoader

class YamlFileLoader extends FileLoader Loads validation metadata from a YAML 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 mapp

YamlFileLoader

class YamlFileLoader extends FileLoader YamlFileLoader loads Yaml routing files. 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, string|null $type = null) Finds a

YamlFileLoader

class YamlFileLoader extends FileLoader YamlFileLoader loads translations from Yaml files. Methods MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. from FileLoader Details MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. Parameters mixed $resource A resource string $locale A locale string $domain The domain Return Value MessageCatalogue A Mess

YamlFileLoader

class YamlFileLoader extends FileLoader YamlFileLoader loads YAML files service definitions. The YAML format does not support anonymous services (cf. the XML loader). 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 Fi

YamlExtension::encode()

encode($input, $inline, $dumpObjects) Parameters $input $inline $dumpObjects

YamlFileDumper

class YamlFileDumper extends FileDumper YamlFileDumper generates yaml files from a message catalogue. Methods setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. from FileDumper setBackup(bool $backup) Sets backup flag. from FileDumper dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. from FileDumper string formatCatalogue(MessageCatalogue $messages, string $domain, array $options = arr

YamlExtension::getFilters()

getFilters() {@inheritdoc}

YamlExtension::dump()

dump($value, $inline, $dumpObjects = false) Parameters $value $inline $dumpObjects

YamlExtension::getName()

getName() {@inheritdoc}