public function loadTranslations($key, $pathToIniFile)
    {
        $path = $pathToIniFile;
        if(!is_file($path)) {
            throw new \InvalidArgumentException(sprintf("Translation file not found into path %s", $path));
        } else {
            $this->translations[$key] = parse_ini_file($path,true);
        }
    }
public function loadTranslations($key, $pathToIniFile)
    {
        $path = $pathToIniFile;
        if(!is_file($path)) {
            throw new \InvalidArgumentException(sprintf("Translation file not found into path %s", $path));
        } else {
            $this->translations[$key] = parse_ini_file($path,true);
        }
    }
public function loadTranslations ( $ key , $ pathToIniFile ) { $ path = $ pathToIniFile ; if ( ! is_file ( $ path ) ) { throw new \ InvalidArgumentException ( sprintf ( "Translation file not found into path %s" , $ path ) ) ; } else { $ this -> translations [ $ key ] = parse_ini_file ( $ path , true ) ; } }
adds a translations ini file content to subject translations
@param string $key key of translations array to store file content into
@param string $pathToIniFile file path from application root
@throws InvalidArgumentException if file is not found
adds a translations ini file content to subject translations