src/Utils/Helper.php
public function resolveMessageArrayToMessageKeys(array $messages, $prefix="")
    {
        $flatArray = [];

        foreach ($messages as $key=>$message) {
            $this->resolveMessageToKeys($message, $key, function($qualifiedKey) use(&$flatArray)
                {
                    $flatArray[] = $qualifiedKey;
                }, $prefix);
        }

        return $flatArray;
    }
public function resolveMessageArrayToMessageKeys(array $messages, $prefix="")
    {
        $flatArray = [];

        foreach ($messages as $key=>$message) {
            $this->resolveMessageToKeys($message, $key, function($qualifiedKey) use(&$flatArray)
                {
                    $flatArray[] = $qualifiedKey;
                }, $prefix);
        }

        return $flatArray;
    }
public function resolveMessageArrayToMessageKeys ( array $ messages , $ prefix = "" ) { $ flatArray = [ ] ; foreach ( $ messages as $ key => $ message ) { $ this -> resolveMessageToKeys ( $ message , $ key , function ( $ qualifiedKey ) use ( & $ flatArray ) { $ flatArray [ ] = $ qualifiedKey ; } , $ prefix ) ; } return $ flatArray ; }
Resolves a message array with nested
sub-arrays to a flat array of fully
qualified message keys.

@param array $messages   Complex message array (like the ones in the app/lang/* files).
@return array Flat array of fully qualified message keys.
Resolves a message array with nested sub - arrays to a flat array of fully qualified message keys .