Skip to content

Commit 5b2a0da

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Support JWT v4
2 parents 3d6f1c3 + 713f384 commit 5b2a0da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mercure.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,10 @@ And here is the controller::
423423
{
424424
$hubUrl = $this->getParameter('mercure.default_hub');
425425
$this->addLink($request, new Link('mercure', $hubUrl));
426-
426+
427427
$key = Key\InMemory::plainText('mercure_secret_key'); // don't forget to set this parameter! Test value: !ChangeMe!
428428
$configuration = Configuration::forSymmetricSigner(new Sha256(), $key);
429-
429+
430430
$token = $configuration->builder()
431431
->withClaim('mercure', ['subscribe' => ["http://example.com/books/1"]]) // can also be a URI template, or *
432432
->getToken($configuration->signer(), $configuration->signingKey())

0 commit comments

Comments
 (0)