| @@ 328-335 (lines=8) @@ | ||
| 325 | * @param $options | |
| 326 | * @throws DispatchException | |
| 327 | */ | |
| 328 | protected function _checkWhiteList($controller, $options) | |
| 329 |     { | |
| 330 |         if (isset($options['blacklist'])) { | |
| 331 |             if (!$this->_checkInList($controller, $options['blacklist'])) { | |
| 332 |                 throw new DispatchException("Controller: {$controller}, not part of allowed whitelist."); | |
| 333 | } | |
| 334 | } | |
| 335 | } | |
| 336 | ||
| 337 | /** | |
| 338 | * Internal function for checking controller instance against class list. | |
| @@ 362-369 (lines=8) @@ | ||
| 359 | * @param $options | |
| 360 | * @throws DispatchException | |
| 361 | */ | |
| 362 | protected function _checkBlackList($controller, $options) | |
| 363 |     { | |
| 364 |         if (isset($options['blacklist'])) { | |
| 365 |             if ($this->_checkInList($controller, $options['blacklist'])) { | |
| 366 |                 throw new DispatchException("Controller: {$controller}, found on blacklist."); | |
| 367 | } | |
| 368 | } | |
| 369 | } | |
| 370 | ||
| 371 | /** | |
| 372 | * Create a new PSR-7 Response. | |