1 | <?php |
||
12 | class ProxyResolver implements ResolverInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var ResolverInterface |
||
16 | */ |
||
17 | protected $resolver; |
||
18 | |||
19 | /** |
||
20 | * a list of proxy hosts (picks a random one for each generation to seed browser requests among multiple hosts). |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $hosts = array(); |
||
25 | |||
26 | /** |
||
27 | * @param ResolverInterface $resolver |
||
28 | * @param string[] $hosts |
||
29 | */ |
||
30 | public function __construct(ResolverInterface $resolver, array $hosts) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function resolve($path, $filter) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function store(BinaryInterface $binary, $targetPath, $filter) |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function isStored($path, $filter) |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function remove(array $paths, array $filters) |
||
67 | |||
68 | /** |
||
69 | * @param $url |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | protected function rewriteUrl($url) |
||
97 | } |
||
98 |