Symfony\Component\Translation\Loader\IcuResFileLoader::flatten
Flattens an ResourceBundle
The scheme used is: key { key2 { key3 { "value" } } } Becomes: 'key.key2.key3' => 'value' This function takes an array by reference and will modify it
Signature
protected function flatten(ResourceBundle
$rb,
[array&
$messages = null,
[string
$path = null]] )
Parameters
$rb
— \ResourceBundle- the ResourceBundle that will be flattened
$messages
— array- used internally for recursive calls
$path
— string- current path being parsed, used internally for recursive calls
Returns
- array
- the flattened ResourceBundle