Mapping\Loader\YamlFileLoader (Component\Serializer)

Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader

class YamlFileLoader extends FileLoader

YAML File Loader.

Methods

__construct(string $file)

Constructor.

from FileLoader
bool loadClassMetadata(ClassMetadataInterface $classMetadata)

Load class metadata.

Details

public __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

public bool loadClassMetadata(ClassMetadataInterface $classMetadata)

Load class metadata.

Parameters

ClassMetadataInterface $classMetadata A metadata

Return Value

bool

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部