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 1b0c13e + 5c44ff1 commit e3b9239Copy full SHA for e3b9239
mercure.rst
@@ -400,7 +400,7 @@ And here is the controller::
400
$username = $this->getUser()->getUsername(); // Retrieve the username of the current user
401
$token = (new Builder())
402
// set other appropriate JWT claims, such as an expiration date
403
- ->set('mercure', ['subscribe' => "http://example.com/user/$username"]) // could also include the security roles, or anything else
+ ->set('mercure', ['subscribe' => ["http://example.com/user/$username"]]) // could also include the security roles, or anything else
404
->sign(new Sha256(), $this->getParameter('mercure_secret_key')) // don't forget to set this parameter! Test value: aVerySecretKey
405
->getToken();
406
0 commit comments