| @@ 315-322 (lines=8) @@ | ||
| 312 | * @param $options |
|
| 313 | * @throws DispatchException |
|
| 314 | */ |
|
| 315 | protected function _checkWhiteList($controller, $options) |
|
| 316 | { |
|
| 317 | if (isset($options['blacklist'])) { |
|
| 318 | if (!$this->_checkInList($controller, $options['blacklist'])) { |
|
| 319 | throw new DispatchException("Controller: {$controller}, not part of allowed whitelist."); |
|
| 320 | } |
|
| 321 | } |
|
| 322 | } |
|
| 323 | ||
| 324 | /** |
|
| 325 | * Internal function for checking controller instance against class list. |
|
| @@ 349-356 (lines=8) @@ | ||
| 346 | * @param $options |
|
| 347 | * @throws DispatchException |
|
| 348 | */ |
|
| 349 | protected function _checkBlackList($controller, $options) |
|
| 350 | { |
|
| 351 | if (isset($options['blacklist'])) { |
|
| 352 | if ($this->_checkInList($controller, $options['blacklist'])) { |
|
| 353 | throw new DispatchException("Controller: {$controller}, found on blacklist."); |
|
| 354 | } |
|
| 355 | } |
|
| 356 | } |
|
| 357 | ||
| 358 | /** |
|
| 359 | * Create a new PSR-7 Response. |
|