| 1 | <?php |
||
| 14 | class BaseHostPlugin implements Plugin |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var UriInterface |
||
| 18 | */ |
||
| 19 | private $baseUri; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var bool |
||
| 23 | */ |
||
| 24 | private $replace; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param UriInterface $baseUri |
||
| 28 | * @param array $config { |
||
| 29 | * @var bool $replace True will replace all hosts, false will only add host when none is specified. |
||
| 30 | * } |
||
| 31 | */ |
||
| 32 | 5 | public function __construct(UriInterface $baseUri, array $config = []) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 3 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @param OptionsResolver $resolver |
||
| 60 | */ |
||
| 61 | 5 | private function configureOptions(OptionsResolver $resolver) |
|
| 68 | } |
||
| 69 |