Skip to content

Commit 4447fd5

Browse files
committed
Require upcoming 3.0.3 api platform and remove temp fix for uri template in mercure token listener
1 parent bcef4b1 commit 4447fd5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"ext-json": "*",
2525
"ext-pdo": "*",
2626
"ext-simplexml": "*",
27-
"api-platform/core": "^3.0",
27+
"api-platform/core": "^3.0.3",
2828
"cocur/slugify": "^4.1",
2929
"doctrine/annotations": "^1.7.0",
3030
"doctrine/dbal": "^3.4",

src/EventListener/Mercure/AddMercureTokenListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ public function onKernelResponse(ResponseEvent $event): void
7070
$refl = new \ReflectionClass($operation->getClass());
7171
$isPublishable = \count($refl->getAttributes(Publishable::class));
7272

73-
// TODO: the str_replace thing should be fixed inside API Platform (will be available in next patch)
74-
$uriTemplate = $this->buildAbsoluteUriTemplate() . $operation->getRoutePrefix() . str_replace('.{_format}', '{._format}', $operation->getUriTemplate());
73+
$uriTemplate = $this->buildAbsoluteUriTemplate() . $operation->getRoutePrefix() . $operation->getUriTemplate();
7574

7675
if (!$isPublishable) {
7776
$subscribeIris[] = $uriTemplate;

0 commit comments

Comments
 (0)