We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d6f1c3 + 713f384 commit 5b2a0daCopy full SHA for 5b2a0da
mercure.rst
@@ -423,10 +423,10 @@ And here is the controller::
423
{
424
$hubUrl = $this->getParameter('mercure.default_hub');
425
$this->addLink($request, new Link('mercure', $hubUrl));
426
-
+
427
$key = Key\InMemory::plainText('mercure_secret_key'); // don't forget to set this parameter! Test value: !ChangeMe!
428
$configuration = Configuration::forSymmetricSigner(new Sha256(), $key);
429
430
$token = $configuration->builder()
431
->withClaim('mercure', ['subscribe' => ["http://example.com/books/1"]]) // can also be a URI template, or *
432
->getToken($configuration->signer(), $configuration->signingKey())
0 commit comments