public function readFile(string $file_name)
    {
        // yaml_read_file does not support stream wrappers
        $file_handle = @fopen($file_name, "r");
        if (!is_resource($file_handle))
            throw new IOException("Failed to read file: " . $file_name);
        return $this->readFileHandle($file_handle);
    }
public function readFile(string $file_name)
    {
        // yaml_read_file does not support stream wrappers
        $file_handle = @fopen($file_name, "r");
        if (!is_resource($file_handle))
            throw new IOException("Failed to read file: " . $file_name);
        return $this->readFileHandle($file_handle);
    }
public function readFile ( string $ file_name ) { // yaml_read_file does not support stream wrappers $ file_handle = @ fopen ( $ file_name , "r" ) ; if ( ! is_resource ( $ file_handle ) ) throw new IOException ( "Failed to read file: " . $ file_name ) ; return $ this -> readFileHandle ( $ file_handle ) ; }
Read YAML from a file

@param string filename The file to read from
@return array The parsed data
Read YAML from a file