src/Extensions/SmokeStop/StopExtension.php 1 location
|
@@ 46-53 (lines=8) @@
|
| 43 |
|
return false; |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
public function getStrategy($name) |
| 47 |
|
{ |
| 48 |
|
if (array_key_exists($name, $this->stopStrategies)) { |
| 49 |
|
return $this->stopStrategies[$name]; |
| 50 |
|
} else { |
| 51 |
|
throw new \RuntimeException("Strategy ('" . $name . "') not found. Available strategies are " . implode(', ', array_keys($this->stopStrategies))); |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
} |
| 55 |
|
|
src/Config/Configuration.php 1 location
|
@@ 201-208 (lines=8) @@
|
| 198 |
|
} |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
public function getExtension($name) |
| 202 |
|
{ |
| 203 |
|
if (array_key_exists($name, $this->extensions)) { |
| 204 |
|
return $this->extensions[$name]; |
| 205 |
|
} else { |
| 206 |
|
throw new \RuntimeException('The extension ("' . $name . '") you are trying to access does not exist. Registered extensions are: ' . implode(' ,', array_keys($this->extensions)) . '.'); |
| 207 |
|
} |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
/** |
| 211 |
|
* @param $name |