File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1648,16 +1648,16 @@ You can log in a user programmatically using the `login()` method of the
1648
1648
$user = ...;
1649
1649
1650
1650
// log the user in on the current firewall
1651
- $this-> security->login($user);
1651
+ $security->login($user);
1652
1652
1653
1653
// if the firewall has more than one authenticator, you must pass it explicitly
1654
1654
// by using the name of built-in authenticators...
1655
- $this-> security->login($user, 'form_login');
1655
+ $security->login($user, 'form_login');
1656
1656
// ...or the service id of custom authenticators
1657
- $this-> security->login($user, ExampleAuthenticator::class);
1657
+ $security->login($user, ExampleAuthenticator::class);
1658
1658
1659
1659
// you can also log in on a different firewall
1660
- $this-> security->login($user, 'form_login', 'other_firewall');
1660
+ $security->login($user, 'form_login', 'other_firewall');
1661
1661
1662
1662
// ... redirect the user to its account page for instance
1663
1663
}
You can’t perform that action at this time.
0 commit comments