Thanks to visit codestin.com Credit goes to github.com
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 088310f + bbe2e90 commit 93af5c5Copy full SHA for 93af5c5
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