1 | <?php |
||
10 | class PrerenderClient extends BaseClient |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $prerenderUrl; |
||
16 | |||
17 | /** |
||
18 | * @param string $prerenderUrl The url of the prerender server |
||
19 | * @param array $server The server parameters (equivalent of $_SERVER) |
||
20 | * @param History $history A History instance to store the browser history |
||
21 | * @param CookieJar $cookieJar A CookieJar instance to store the cookies |
||
22 | */ |
||
23 | 3 | public function __construct($prerenderUrl, array $server = [], History $history = null, CookieJar $cookieJar = null) |
|
29 | |||
30 | /** |
||
31 | * @param string $uri |
||
32 | * @return string |
||
33 | */ |
||
34 | 2 | protected function getAbsoluteUri($uri) |
|
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | 1 | public function getRequest() |
|
52 | |||
53 | /** |
||
54 | * @param $url |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | 1 | protected function correctUrl($url) |
|
62 | } |
||
63 |