class YamlReader implements Reader (View source)

Properties

protected Parser $parser

Methods

protected
Parser
getParser()

No description

public
array
read(string $locale, string $path)

Get messages from this locale

protected
mixed
normaliseMessages(array $entities)

Flatten [class => [ key1 => value1, key2 => value2]] into [class.key1 => value1, class.key2 => value2]

Details

protected Parser getParser()

No description

Return Value

Parser

array read(string $locale, string $path)

Get messages from this locale

Parameters

string $locale
string $path

Filename (or other identifier)

Return Value

array

messages Flat array of localisation keys to values.

protected mixed normaliseMessages(array $entities)

Flatten [class => [ key1 => value1, key2 => value2]] into [class.key1 => value1, class.key2 => value2]

Inverse of YamlWriter::denormaliseMessages()

Parameters

array $entities

Return Value

mixed