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
|
@@ 195-202 (lines=8) @@
|
192 |
|
} |
193 |
|
} |
194 |
|
|
195 |
|
public function getExtension($name) |
196 |
|
{ |
197 |
|
if (array_key_exists($name, $this->extensions)) { |
198 |
|
return $this->extensions[$name]; |
199 |
|
} else { |
200 |
|
throw new \RuntimeException('The extension ("' . $name . '") you are trying to access does not exist. Registered extensions are: ' . implode(' ,', array_keys($this->extensions)) . '.'); |
201 |
|
} |
202 |
|
} |
203 |
|
|
204 |
|
/** |
205 |
|
* @param $name |