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

            foreach ($key as $_index=>$_key) {
                $this->resolveMessageKey($_key, $_index, $callback, $_prefix);
            }

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

            foreach ($key as $_index=>$_key) {
                $this->resolveMessageKey($_key, $_index, $callback, $_prefix);
            }

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

@param mixed $key            An array item read from the configuration ('messages' array).
@param mixed $keyIndex       The array index of $key. Is necessary if $key is an array.
@param callable $callback    A callback function: function($fullyQualifiedKey).
@param string $prefix        Optional key prefix.
Returns the concatenation of prefix and key if the key is a string . If the key is an array then the function will recurse .