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.
This commit is contained in:
Igor Wiedler 2012-11-11 12:59:36 +01:00
parent d9b291b878
commit c659e7858a
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ class XmlFileLoader extends FileLoader
*
* @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);

View File

@ -233,7 +233,7 @@ class YamlFileLoader extends FileLoader
*
* @return array The file content
*/
private function loadFile($file)
protected function loadFile($file)
{
return $this->validate(Yaml::parse($file), $file);
}