Skip to content

Commit 5290665

Browse files
committed
changelog
1 parent 4b4deaa commit 5290665

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
* A new configuration is available to keep old services (IriConverter, IdentifiersExtractor and OpenApiFactory) `metadata_backward_compatibility_layer` (defaults to false) (#4351)
4646
* Add support for `security_post_validation` attribute
4747
* Mark the GraphQL subsystem as stable (#4500)
48-
* feat(test): add `Client::loginUser()`
48+
* feat(test): add `Client::loginUser()` (#4588)
49+
* feat(http_cache): use symfony/http-client instead of guzzlehttp/guzzle, `ApiPlatform\Core\HttpCache\PurgerInterface` is deprecated in favor of `ApiPlatform\HttpCache\PurgerInterface`, new purger that uses PURGE (#4695)
4950

5051
## 2.6.8
5152

tests/HttpCache/EventListener/AddTagsListenerTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use ApiPlatform\Api\IriConverterInterface;
1717
use ApiPlatform\Core\Tests\ProphecyTrait;
1818
use ApiPlatform\HttpCache\EventListener\AddTagsListener;
19-
use ApiPlatform\HttpCache\Header;
2019
use ApiPlatform\HttpCache\PurgerInterface;
2120
use ApiPlatform\Metadata\ApiResource;
2221
use ApiPlatform\Metadata\GetCollection;
@@ -232,7 +231,7 @@ public function testAddTagsWithXKey()
232231
);
233232

234233
$purgerProphecy = $this->prophesize(PurgerInterface::class);
235-
$purgerProphecy->getResponseHeader(['/foo' => '/foo', '/bar' => '/bar', '/dummies' => '/dummies'])->willReturn(new Header('xkey', '/foo /bar /dummies'));
234+
$purgerProphecy->getResponseHeaders(['/foo' => '/foo', '/bar' => '/bar', '/dummies' => '/dummies'])->willReturn(['xkey', '/foo /bar /dummies']);
236235

237236
$listener = new AddTagsListener($iriConverterProphecy->reveal(), $resourceMetadataCollectionFactoryProphecy->reveal(), $purgerProphecy->reveal());
238237
$listener->onKernelResponse($event);
@@ -261,7 +260,7 @@ public function testAddTagsWithoutHeader()
261260
);
262261

263262
$purgerProphecy = $this->prophesize(PurgerInterface::class);
264-
$purgerProphecy->getResponseHeader(['/foo' => '/foo', '/bar' => '/bar', '/dummies' => '/dummies'])->willReturn(null);
263+
$purgerProphecy->getResponseHeaders(['/foo' => '/foo', '/bar' => '/bar', '/dummies' => '/dummies'])->willReturn([]);
265264

266265
$listener = new AddTagsListener($iriConverterProphecy->reveal(), $resourceMetadataCollectionFactoryProphecy->reveal(), $purgerProphecy->reveal());
267266
$listener->onKernelResponse($event);

tests/Symfony/Bundle/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private function runDefaultConfigTests(array $doctrineIntegrationsToLoad = ['orm
189189
'varnish_urls' => [],
190190
'request_options' => [],
191191
'max_header_length' => 7500,
192-
'purger' => 'api_platform.http_cache.purger.varnish.ban',
192+
'purger' => 'api_platform.http_cache.purger.varnish',
193193
],
194194
'etag' => true,
195195
'max_age' => null,

0 commit comments

Comments
 (0)