Skip to content

Commit ca6728e

Browse files
committed
Renamed FOSPurgeClient.php to VarnishPurgeClient.php
1 parent 72db381 commit ca6728e

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010

1111
/**
1212
* Purge client based on FOSHttpCacheBundle.
13-
*
14-
* Only support BAN requests on purpose, to be able to invalidate cache for a
15-
* collection of Location/Content objects.
1613
*/
17-
class FOSPurgeClient implements PurgeClientInterface
14+
class VarnishPurgeClient implements PurgeClientInterface
1815
{
1916
/**
2017
* @var \FOS\HttpCacheBundle\CacheManager

src/Resources/config/services.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ services:
1010
ezplatform.http_cache.purge_client:
1111
alias: ezplatform.http_cache.purge_client.local
1212

13-
ezplatform.http_cache.purge_client.fos:
14-
class: EzSystems\PlatformHttpCacheBundle\PurgeClient\FOSPurgeClient
13+
ezplatform.http_cache.purge_client.varnish:
14+
class: EzSystems\PlatformHttpCacheBundle\PurgeClient\VarnishPurgeClient
1515
arguments: ["@ezplatform.http_cache.cache_manager"]
1616
tags:
1717
- {name: ezplatform.http_cache.purge_client, purge_type: http}

tests/PurgeClient/FOSPurgeClientTest.php renamed to tests/PurgeClient/VarnishPurgeClientTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
*/
99
namespace EzSystems\PlatformHttpCacheBundle\Tests\PurgeClient;
1010

11-
use EzSystems\PlatformHttpCacheBundle\PurgeClient\FOSPurgeClient;
11+
use EzSystems\PlatformHttpCacheBundle\PurgeClient\VarnishPurgeClient;
1212
use FOS\HttpCache\ProxyClient\ProxyClientInterface;
1313
use FOS\HttpCacheBundle\CacheManager;
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1616

17-
class FOSPurgeClientTest extends TestCase
17+
class VarnishPurgeClientTest extends TestCase
1818
{
1919
/**
2020
* @var \PHPUnit_Framework_MockObject_MockObject
2121
*/
2222
private $cacheManager;
2323

2424
/**
25-
* @var FOSPurgeClient
25+
* @var VarnishPurgeClient
2626
*/
2727
private $purgeClient;
2828

@@ -39,7 +39,7 @@ protected function setUp()
3939
)
4040
)
4141
->getMock();
42-
$this->purgeClient = new FOSPurgeClient($this->cacheManager);
42+
$this->purgeClient = new VarnishPurgeClient($this->cacheManager);
4343
}
4444

4545
public function testPurgeNoLocationIds()

0 commit comments

Comments
 (0)