1 | <?php |
||
11 | class ProxyResolver extends ImagineProxyResolver |
||
12 | { |
||
13 | /** |
||
14 | * Replaces host with given proxy host. |
||
15 | * |
||
16 | * The original method from Liip\ImagineBundle\Imagine\Cache\Resolver\ProxyResolver:rewriteUrl() |
||
17 | * doesn't behave correctly when working with domain and port or with host which contains trailing slash. |
||
18 | * |
||
19 | * @param string $url |
||
20 | * @return string |
||
21 | */ |
||
22 | protected function rewriteUrl($url) |
||
33 | } |
||
34 |