Skip to content

Conversation

@samuelvi
Copy link

@samuelvi samuelvi commented Jan 10, 2022

Hi guys!

I just added documentation for the PR symfony/symfony#44968
Which pretends to admit an $options parameter, which pretends:

  1. customizing:

route_name
lifetime

  1. Passing extra parameters to the internal router and query params to que link generated.

I hope it helps. Thanks a lot!

babache and others added 3 commits January 9, 2022 12:11
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
@carsonbot carsonbot added this to the 6.1 milestone Jan 10, 2022
@javiereguiluz javiereguiluz added the Waiting Code Merge Docs for features pending to be merged label Jan 11, 2022
@carsonbot carsonbot modified the milestones: 6.1, next Jan 11, 2022
@carsonbot carsonbot changed the title Add documentation for the optional $options params accepted by createLoginLink (LoginLinkHandlerInterface) [Security] Add documentation for the optional $options params accepted by createLoginLink (LoginLinkHandlerInterface) Oct 21, 2022
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$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.
Copy link
Contributor

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?

@javiereguiluz
Copy link
Member

Closing because the related code PR was closed without merging (symfony/symfony#44968). Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Security Status: Needs Review Waiting Code Merge Docs for features pending to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants