Skip to content

Commit

Permalink
Make YamlFileLoader and XmlFileLoader file loading extensible
Browse files Browse the repository at this point in the history
By changing visibility to protected it becomes possible to extend the
loader and cache file contents. phpBB needs this.
  • Loading branch information
igorw committed Nov 11, 2012
1 parent d9b291b commit c659e78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -204,7 +204,7 @@ private function parseDefinition($id, $service, $file)
*
* @throws \InvalidArgumentException When loading of XML file returns error
*/
private function parseFile($file)
protected function parseFile($file)
{
$internalErrors = libxml_use_internal_errors(true);
$disableEntities = libxml_disable_entity_loader(true);
Expand Down
Expand Up @@ -233,7 +233,7 @@ private function parseDefinition($id, $service, $file)
*
* @return array The file content
*/
private function loadFile($file)
protected function loadFile($file)
{
return $this->validate(Yaml::parse($file), $file);
}
Expand Down

0 comments on commit c659e78

Please sign in to comment.