1 | <?php |
||
14 | class UrlResolver |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Repository connector. |
||
19 | * |
||
20 | * @var Connector |
||
21 | */ |
||
22 | protected $repositoryConnector; |
||
23 | |||
24 | /** |
||
25 | * Creates instance of url resolver. |
||
26 | * |
||
27 | * @param Connector $repository_connector Repository connector. |
||
28 | */ |
||
29 | 18 | public function __construct(Connector $repository_connector) |
|
33 | |||
34 | /** |
||
35 | * Resolves any url into absolute one using given url for missing parts. |
||
36 | * |
||
37 | * @param string $wc_url Working copy url. |
||
38 | * @param string $url_to_resolve Url to resolve. |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | 18 | public function resolve($wc_url, $url_to_resolve) |
|
54 | |||
55 | } |
||
56 |