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(ClassMetadataInterface $classMetadata)

Load class metadata.

Parameters

ClassMetadataInterface $classMetadata A metadata

Return Value

bool

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Serializer/Mapping/Loader/YamlFileLoader.html