From 7d322135c7c25a114282ca99e94893920c19e9d8 Mon Sep 17 00:00:00 2001 From: Alexander Menshchikov Date: Fri, 29 May 2020 23:30:41 +0300 Subject: [PATCH] minor fix --- mercure.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/mercure.rst b/mercure.rst index 2f71bbc6e5c..6660f6a38f1 100644 --- a/mercure.rst +++ b/mercure.rst @@ -413,7 +413,6 @@ And here is the controller:: $hubUrl = $this->getParameter('mercure.default_hub'); $this->addLink($request, new Link('mercure', $hubUrl)); - $username = $this->getUser()->getUsername(); // Retrieve the username of the current user $token = (new Builder()) // set other appropriate JWT claims, such as an expiration date ->withClaim('mercure', ['subscribe' => ["http://example.com/books/1"]]) // can also be a URI template, or *