Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop' of git://github.com/zendframework/zf2 into dev…
Browse files Browse the repository at this point in the history
…elop
  • Loading branch information
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ public static function fromFile($filename, $returnConfigObject = false)
}

$config = include $filename;
} elseif (isset(self::$extensions[$extension])) {
$reader = self::$extensions[$extension];
} elseif (isset(static::$extensions[$extension])) {
$reader = static::$extensions[$extension];
if (!$reader instanceof Reader\ReaderInterface) {
$reader = self::getReaderPluginManager()->get($reader);
self::$extensions[$extension] = $reader;
$reader = static::getReaderPluginManager()->get($reader);
static::$extensions[$extension] = $reader;
}

/** @var Reader\ReaderInterface $reader */
Expand All @@ -121,7 +121,7 @@ public static function fromFiles(array $files, $returnConfigObject = false)
$config = array();

foreach ($files as $file) {
$config = ArrayUtils::merge($config, self::fromFile($file));
$config = ArrayUtils::merge($config, static::fromFile($file));
}

return ($returnConfigObject) ? new Config($config) : $config;
Expand Down Expand Up @@ -191,7 +191,7 @@ public static function toFile($filename, $config)
*/
public static function setReaderPluginManager(ReaderPluginManager $readers)
{
self::$readers = $readers;
static::$readers = $readers;
}

/**
Expand Down Expand Up @@ -253,7 +253,7 @@ public static function registerReader($extension, $reader)
));
}

self::$extensions[$extension] = $reader;
static::$extensions[$extension] = $reader;
}

/**
Expand Down

0 comments on commit 747b7ed

Please sign in to comment.