1 | <?php |
||
14 | final class BaseUriPlugin implements Plugin |
||
15 | { |
||
16 | /** |
||
17 | * @var AddHostPlugin |
||
18 | */ |
||
19 | private $addHostPlugin; |
||
20 | |||
21 | /** |
||
22 | * @var AddPathPlugin|null |
||
23 | */ |
||
24 | private $addPathPlugin = null; |
||
25 | |||
26 | /** |
||
27 | * @param UriInterface $uri Has to contain a host name and cans have a path. |
||
28 | * @param array $hostConfig Config for AddHostPlugin. @see AddHostPlugin::configureOptions |
||
29 | */ |
||
30 | public function __construct(UriInterface $uri, array $hostConfig = []) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
||
54 | } |
||
55 |