| 1 | <?php |
||
| 8 | class AllowedHostsMiddleware implements HTTPMiddleware |
||
| 9 | { |
||
| 10 | |||
| 11 | private $allowedHosts = null; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return string A comma-separted list of allowed Host header values |
||
| 15 | */ |
||
| 16 | public function getAllowedHosts() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param $allowedHosts string A comma-separted list of allowed Host header values |
||
| 23 | */ |
||
| 24 | public function setAllowedHosts($allowedHosts) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | public function process(HTTPRequest $request, callable $delegate) |
||
| 45 | } |
||
| 46 |