Permalink
Browse files

Merge pull request #2 from barrycrayon/3.2/develop

added the inline parameter to the symfony YAML dump method.
  • Loading branch information...
Gabriel Evans
Gabriel Evans committed Apr 11, 2012
2 parents ef2d268 + e14710e commit 560675184e377216c78b66e953d0e1029f8dd5c2
Showing with 4 additions and 4 deletions.
  1. +2 −2 classes/kohana/yaml.php
  2. +2 −2 classes/kohana/yaml/symfony.php
View
@@ -107,9 +107,9 @@ public function parse_file($filename, $evaluate = FALSE)
* @param mixed $data Input data
* @return boolean `FALSE` on failure
*/
- public function dump_file($filename, $data)
+ public function dump_file($filename, $data, $inline = 0)
{
- return (boolean) file_put_contents($filename, $this->dump($data));
+ return (boolean) file_put_contents($filename, $this->dump($data, $inline));
}
} // End YAML
@@ -40,9 +40,9 @@ public function parse($string)
return $this->_parser->parse($string);
}
- public function dump($data)
+ public function dump($data, $inline = 0)
{
- return $this->_dumper->dump($data);
+ return $this->_dumper->dump($data, $inline);
}
}

0 comments on commit 5606751

Please sign in to comment.