src/Utils/Helper.php
private function resolveMessageToKeys($message, $key, $callback, $prefix="")
    {
        if (is_array($message)) {
            $_prefix = $prefix ? $prefix.$key."." : $key.".";

            foreach ($message as $_key=>$_message) {
                $this->resolveMessageToKeys($_message, $_key, $callback, $_prefix);
            }

        } else {
            $callback($prefix.$key);
        }
    }
private function resolveMessageToKeys($message, $key, $callback, $prefix="")
    {
        if (is_array($message)) {
            $_prefix = $prefix ? $prefix.$key."." : $key.".";

            foreach ($message as $_key=>$_message) {
                $this->resolveMessageToKeys($_message, $_key, $callback, $_prefix);
            }

        } else {
            $callback($prefix.$key);
        }
    }
private function resolveMessageToKeys ( $ message , $ key , $ callback , $ prefix = "" ) { if ( is_array ( $ message ) ) { $ _prefix = $ prefix ? $ prefix . $ key . "." : $ key . "." ; foreach ( $ message as $ _key => $ _message ) { $ this -> resolveMessageToKeys ( $ _message , $ _key , $ callback , $ _prefix ) ; } } else { $ callback ( $ prefix . $ key ) ; } }
Returns the concatenation of prefix and key if the value
is a message. If the value is an array then the function
will recurse.

@param mixed $message        An array item read from a message file array.
@param mixed $key            The array key of $message.
@param callable $callback    A callback function: function($fullyQualifiedKey).
@param string $prefix        Optional key prefix.
Returns the concatenation of prefix and key if the value is a message . If the value is an array then the function will recurse .