Skip to content
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

fix: use the right argument index for Authorization cookie lifetime #69

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented May 17, 2022

Spotted in #68. Also embeds #68 (with test case)

$definition = $container->getDefinition(Authorization::class);
if (
null === $definition->getArgument(1) &&
$container->hasParameter('session.storage.options')
) {
$definition->setArgument(
2,
1,
Copy link
Member Author

@chalasr chalasr May 17, 2022

Choose a reason for hiding this comment

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

Authorization's constructor takes only 2 arguments, 0 and 1 from the container pov

@chalasr chalasr merged commit 95ea67a into symfony:main Jun 6, 2022
@chalasr chalasr deleted the fix-sess-cookie-ttl branch June 6, 2022 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants