src/Extensions/SmokeStop/StopExtension.php 1 location
|
@@ 42-49 (lines=8) @@
|
| 39 |
|
return false; |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
public function getStrategy($name) |
| 43 |
|
{ |
| 44 |
|
if (array_key_exists($name, $this->stopStrategies)) { |
| 45 |
|
return $this->stopStrategies[$name]; |
| 46 |
|
} else { |
| 47 |
|
throw new \RuntimeException("Strategy ('" . $name . "') not found. Available strategies are " . implode(', ', array_keys($this->stopStrategies))); |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
} |
| 51 |
|
|
src/Config/Configuration.php 1 location
|
@@ 174-181 (lines=8) @@
|
| 171 |
|
} |
| 172 |
|
} |
| 173 |
|
|
| 174 |
|
public function getExtension($name) |
| 175 |
|
{ |
| 176 |
|
if (array_key_exists($name, $this->extensions)) { |
| 177 |
|
return $this->extensions[$name]; |
| 178 |
|
} else { |
| 179 |
|
throw new \RuntimeException('The extension ("' . $name . '") you are trying to access does not exist. Registered extensions are: ' . implode(' ,', array_keys($this->extensions)) . '.'); |
| 180 |
|
} |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
public function addExtension($name, $extension) |
| 184 |
|
{ |