Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[SecurityBundle] Make enable_authenticator_manager true as there is no other way in Symfony 6 #44554

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

Merged
merged 1 commit into from
Dec 12, 2021

Conversation

alexander-schranz
Copy link
Contributor

Q A
Branch? 6.0 for features / 4.4, 5.3, 5.4 or 6.0 for bug fixes
Bug fix? no
New feature? no
Deprecations? /no
Tickets Fix #...
License MIT
Doc PR symfony/symfony-docs#...

Did read the new docs and I was confused about:

security:
    enable_authenticator_manager: true

as I thought thats the default now and there is no other way. And that seems to case as if you set it to false it will error in:

if (!$config['enable_authenticator_manager']) {
throw new InvalidConfigurationException('"security.enable_authenticator_manager" must be set to "true".');
}

So I would remove the enable_authenticator_manager also from the 6.0 docs and make this just the default to avod confusion here.

Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

We're a bit stricter with what is considered a bugfix or a feature, and given there was no bug before (just an oddity) I think we should call this a feature and target 6.1.

That would also allow us to immediately deprecating setting this option (I think there is a build in deprecate() method for this). This also resolves the description question 🙂

What do you think?

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(after the message is removed)

@nicolas-grekas
Copy link
Member

I missed your comment @wouterj :)
But since not setting/setting to false this option is deprecated in 5.3, I think this should have been part of the cleanup doe in 6.0. false yields an exception already in 6.0. Defaulting to something that throws looks odd to me.

@wouterj
Copy link
Member

wouterj commented Dec 11, 2021

Alright, I'm OK with having this in 6.0😉

@wouterj
Copy link
Member

wouterj commented Dec 12, 2021

Thanks Alexander!

@wouterj wouterj merged commit 348f252 into symfony:6.0 Dec 12, 2021
@alexander-schranz alexander-schranz deleted the patch-10 branch December 12, 2021 13:35
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Dec 13, 2021
…s (alexander-schranz)

This PR was merged into the 6.0 branch.

Discussion
----------

Remove "enable_authenticator_manager" from Symfony 6 docs

See symfony/symfony#44554 to avoid confusion that there is something else.

Commits
-------

df24637 Remove "enable_authenticator_manager" from Symfony 6 docs
@carsonbot carsonbot changed the title Make enable_authenticator_manager true as there is no other way in Symfony 6 [SecurityBundle] Make enable_authenticator_manager true as there is no other way in Symfony 6 Dec 13, 2021
@fabpot fabpot mentioned this pull request Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants