Permalink
Browse files

Make YamlFileLoader and XmlFileLoader file loading extensible

By changing visibility to protected it becomes possible to extend the
loader and cache file contents. phpBB needs this.
  • Loading branch information...
1 parent 380a701 commit eca7e5dfc35b2d2d67366d4b8fad66bdec819ab5 @igorw igorw committed Nov 11, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 Loader/XmlFileLoader.php
  2. +1 −1 Loader/YamlFileLoader.php
View
@@ -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);
@@ -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);
}

0 comments on commit eca7e5d

Please sign in to comment.