File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 88 */
99namespace EzSystems \PlatformHttpCacheBundle \Tests \PurgeClient ;
1010
11- use EzSystems \PlatformHttpCacheBundle \PurgeClient \FOSPurgeClient ;
11+ use EzSystems \PlatformHttpCacheBundle \PurgeClient \VarnishPurgeClient ;
1212use FOS \HttpCache \ProxyClient \ProxyClientInterface ;
1313use FOS \HttpCacheBundle \CacheManager ;
1414use PHPUnit \Framework \TestCase ;
1515use 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 ()
You can’t perform that action at this time.
0 commit comments