Symfony\Component\Translation\Loader\ArrayLoader::flatten
Flattens an nested array of translations
The scheme used is: 'key' => array('key2' => array('key3' => 'value')) Becomes: 'key.key2.key3' => 'value' This function takes an array by reference and will modify it
Signature
private function flatten(array&
$messages,
[array
$subnode = null,
[string
$path = null]] )
Parameters
$messages
— array$subnode
— array- Current subnode being parsed, used internally for recursive calls
$path
— string- Current path being parsed, used internally for recursive calls