@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Magium\Configuration\Config\InvalidConfigurationLocationException; |
| 6 | 6 | use Magium\Configuration\Config\InvalidDirectoryException; |
| 7 | 7 | use Magium\Configuration\File\AdapterInterface; |
| 8 | -use Magium\Configuration\File\InvalidFileException; |
|
| 9 | 8 | |
| 10 | 9 | class ConfigurationFileRepository implements \ArrayAccess, \Iterator, \Countable |
| 11 | 10 | { |
@@ -43,6 +43,9 @@ |
||
| 43 | 43 | return $this->container[$id]; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $type |
|
| 48 | + */ |
|
| 46 | 49 | public function newInstance($type) |
| 47 | 50 | { |
| 48 | 51 | $reflection = new \ReflectionClass($type); |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * @param ConfigurationRepository|null $config |
|
| 105 | + * @param null|ConfigInterface $config |
|
| 106 | 106 | * @return ConfigurationRepository |
| 107 | 107 | * @throws InvalidConfigurationLocationException |
| 108 | 108 | * @throws InvalidFileException |
@@ -159,6 +159,9 @@ discard block |
||
| 159 | 159 | return $structure; |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | + /** |
|
| 163 | + * @param string $callbackString |
|
| 164 | + */ |
|
| 162 | 165 | protected function executeCallback($callbackString, $value) |
| 163 | 166 | { |
| 164 | 167 | if (function_exists($callbackString)) { |
@@ -199,7 +202,7 @@ discard block |
||
| 199 | 202 | |
| 200 | 203 | /** |
| 201 | 204 | * @param \SimpleXMLElement $structure The object representing the merged configuration structure |
| 202 | - * @param \SimpleXmlElement $config An empty config object to be populated |
|
| 205 | + * @param ConfigInterface $config An empty config object to be populated |
|
| 203 | 206 | * @param string $context The name of the context |
| 204 | 207 | * @return ConfigurationRepository The resulting configuration object |
| 205 | 208 | */ |