-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Security] Add documentation for the optional $options params accepted by createLoginLink (LoginLinkHandlerInterface) #16385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security] Add documentation for the optional $options params accepted by createLoginLink (LoginLinkHandlerInterface) #16385
Conversation
Remove line 325 : use Symfony\Component\Security\Http\Authenticator\Passport\Passport; Same 324
This PR was merged into the 5.4 branch. Discussion ---------- Remove duplicate line Remove line 325 : use Symfony\Component\Security\Http\Authenticator\Passport\Passport; Same 324 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 0c7a542 Remove duplicate line
The ``createLoginLink()`` method accepts a third optional argument to pass an | ||
``options`` array. There are three keys to consider: route_name, lifetime and parameters. | ||
$options['route_name'] will override the global route_name value and $options['lifetime'] will override the lifetime global value. | ||
$options['parameters'] accepts and array of name/values to pass to the internal router and to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$options['parameters'] accepts and array of name/values to pass to the internal router and to | |
$options['parameters'] accepts an array of name/values to pass to the internal router and to |
|
||
The ``createLoginLink()`` method accepts a third optional argument to pass an | ||
``options`` array. There are three keys to consider: route_name, lifetime and parameters. | ||
$options['route_name'] will override the global route_name value and $options['lifetime'] will override the lifetime global value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we mention what the global route_name and lifetime values are? Maybe give an example of why might want to override them?
Closing because the related code PR was closed without merging (symfony/symfony#44968). Thanks. |
Hi guys!
I just added documentation for the PR symfony/symfony#44968
Which pretends to admit an $options parameter, which pretends:
route_name
lifetime
I hope it helps. Thanks a lot!