File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/Symfony/Bundle/FrameworkBundle Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ FrameworkBundle
212212 * Make the ` framework.validation.email_validation_mode ` config option default to ` html5 `
213213 * Remove the ` framework.validation.enable_annotations ` config option, use ` framework.validation.enable_attributes ` instead
214214 * Remove the ` framework.serializer.enable_annotations ` config option, use ` framework.serializer.enable_attributes ` instead
215+ * Add ` array $tokenAttributes = [] ` optional parameter to ` KernelBrowser::loginUser() `
215216
216217HttpFoundation
217218--------------
Original file line number Diff line number Diff line change @@ -100,10 +100,8 @@ public function enableReboot(): void
100100 *
101101 * @return $this
102102 */
103- public function loginUser (object $ user , string $ firewallContext = 'main ' /* , array $tokenAttributes = [] */ ): static
103+ public function loginUser (object $ user , string $ firewallContext = 'main ' , array $ tokenAttributes = []): static
104104 {
105- $ tokenAttributes = 2 < \func_num_args () ? func_get_arg (2 ) : [];
106-
107105 if (!interface_exists (UserInterface::class)) {
108106 throw new \LogicException (sprintf ('"%s" requires symfony/security-core to be installed. Try running "composer require symfony/security-core". ' , __METHOD__ ));
109107 }
You can’t perform that action at this time.
0 commit comments