|
@@ 119-128 (lines=10) @@
|
| 116 |
|
* |
| 117 |
|
* @throws InvalidArgumentException If the Module was not found. |
| 118 |
|
*/ |
| 119 |
|
public function getModuleFile($moduleName) |
| 120 |
|
{ |
| 121 |
|
Assert::ModuleName($moduleName); |
| 122 |
|
|
| 123 |
|
if (!isset($this->moduleFiles[$moduleName])) { |
| 124 |
|
throw new InvalidArgumentException(sprintf("Could not find a Module named %s.", $moduleName)); |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
return $this->moduleFiles[$moduleName]; |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
/** |
| 131 |
|
* Returns the Module files in the cache file. |
|
@@ 201-210 (lines=10) @@
|
| 198 |
|
* |
| 199 |
|
* @throws InvalidArgumentException If the install info was not found. |
| 200 |
|
*/ |
| 201 |
|
public function getInstallInfo($moduleName) |
| 202 |
|
{ |
| 203 |
|
Assert::ModuleName($moduleName); |
| 204 |
|
|
| 205 |
|
if (!isset($this->installInfos[$moduleName])) { |
| 206 |
|
throw new InvalidArgumentException(sprintf("Could not find a Module named %s.", $moduleName)); |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
return $this->installInfos[$moduleName]; |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
/** |
| 213 |
|
* Returns the install info for all Modules in the cache file. |