Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

ProxyResolver.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Bundle\EzPublishCoreBundle\Imagine\Cache\Resolver;
8
9 use Liip\ImagineBundle\Imagine\Cache\Resolver\ProxyResolver as ImagineProxyResolver;
10
11 class ProxyResolver extends ImagineProxyResolver
12 {
23 protected function rewriteUrl($url)
24 {
25 if (empty($this->hosts)) {
26 return $url;
27 }
28
29 $proxyHost = rtrim(reset($this->hosts), '/');
30 $relativeUrl = parse_url($url, PHP_URL_PATH);
31
32 return $proxyHost . $relativeUrl;
33 }
34 }
eZ\Bundle\EzPublishCoreBundle\Imagine\Cache\Resolver\ProxyResolver
Definition: ProxyResolver.php:12
eZ\Bundle\EzPublishCoreBundle\Imagine\Cache\Resolver\ProxyResolver\rewriteUrl
rewriteUrl($url)
Replaces host with given proxy host.
Definition: ProxyResolver.php:23
eZ\Bundle\EzPublishCoreBundle\Imagine\Cache\Resolver
Definition: ProxyResolver.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.