1 | <?php |
||
11 | class UriFactory implements UriFactoryInterface |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var AdapterInterface[] |
||
16 | */ |
||
17 | private $adapters = []; |
||
18 | |||
19 | /** |
||
20 | * UriFactory constructor. |
||
21 | */ |
||
22 | protected function __construct() |
||
26 | |||
27 | /** |
||
28 | * @return array |
||
29 | */ |
||
30 | private function getDefaultAdapters() |
||
38 | |||
39 | /** |
||
40 | * @param string $uri |
||
41 | * @param UriFactoryInterface|null $factory |
||
42 | * @return UriInterface |
||
43 | */ |
||
44 | public function createUri(string $uri, UriFactoryInterface $factory = null): UriInterface |
||
60 | |||
61 | /** |
||
62 | * @param UriFactoryInterface|null $factory |
||
63 | * @return UriInterface |
||
64 | */ |
||
65 | public function createUriFromCurrentLocation(UriFactoryInterface $factory = null): UriInterface |
||
81 | |||
82 | /** |
||
83 | * @return UriFactory |
||
84 | */ |
||
85 | public static function factory(): UriFactoryInterface |
||
89 | } |
||
90 |