Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FrameworkBundle] Deprecate not setting some options (uid, validation)#51357

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

Jean-Beru
Copy link
Contributor

@Jean-BeruJean-Beru commentedAug 11, 2023
edited by nicolas-grekas
Loading

QA
Branch?6.4
Bug fix?no
New feature?no
Deprecations?yes
TicketsFix#51097
LicenseMIT
Doc PR

This PR deprecates not setting 4 options in framework configuration to match the v7.0 recipe:

  • uid.default_uuid_version which is6 by default and is set to7 by recipe
  • uid.time_based_uuid_version which is6 by default and is set to7 by recipe
  • validation.email_validation_mode which isnull by default and is set tohtml5 by recipe

See#51097.

->validate()
->always(function (array $v): array {
if (empty($v['password_hashers'])) {
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting the "security.password_hashers" config option is deprecated. It will default to "Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: auto" in 7.0.');
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure about this deprecation. Default values for a prototyped array node are not merged with provided config. So as soon as any config file (or config prepended by a bundle) adds some other config for password hashers, the config for PasswordAuthenticatedUserInterface would be lost.

I'd suggest keeping that one in the recipe.

Choose a reason for hiding this comment

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

They would be merged if we didn't callperformNoDeepMerging, isn't it?
Why don't we perform deep merging BTW?

Choose a reason for hiding this comment

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

Anyway, let's drop this, it's not needed to deprecate not setting this

Copy link
Member

Choose a reason for hiding this comment

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

🤷a5cfc22 "some bug fixes in DIC config classes"

nicolas-grekas reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

@nicolas-grekas no. deep merging is about the various configs received as input, not the defaults

@nicolas-grekasnicolas-grekasforce-pushed theframework-bundle/deprecate-not-setting-router-uid-validator branch 2 times, most recently fromd1c71de toab2faa1CompareAugust 14, 2023 09:50
@nicolas-grekasnicolas-grekas changed the title[FrameworkBundle] Deprecate not setting some options (uid, validator, security)[FrameworkBundle] Deprecate not setting some options (uid, validation)Aug 14, 2023
nicolas-grekas
nicolas-grekas previously approved these changesAug 14, 2023
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

I addressed@stof's review.

@nicolas-grekasnicolas-grekas dismissed theirstale reviewAugust 14, 2023 09:55

There are remaning deprecations, please fix them.

@nicolas-grekasnicolas-grekasforce-pushed theframework-bundle/deprecate-not-setting-router-uid-validator branch fromab2faa1 to878cda2CompareAugust 17, 2023 16:04
nicolas-grekasand others added3 commitsAugust 17, 2023 18:09
…tions (Jean-Beru)This PR was merged into the 6.4 branch.Discussion----------[FrameworkBundle] Deprecate not setting some options| Q             | A| ------------- | ---| Branch?       | 6.4| Bug fix?      | no| New feature?  | no| Deprecations? | yes| Tickets       |Fixsymfony#51097| License       | MIT| Doc PR        |This PR deprecates not setting 5 options in framework configuration to match the v7.0 recipe:* `handle_all_throwables` which is `false` by default and is set to `true` by recipe* `php_errors.log` which use `$debug` value by default and is set to `true` by recipe* `session.cookie_secure` (if session is enabled) which is `null` by default and is set to `auto` by recipe* `session.cookie_samesite` (if session is enabled) which is `null` by default and is set to `lax` by recipe* `session.handler_id` (if session is enabled) which is `session.handler.native_file` by default and is set to `null` by recipe (could be `session.handler.native_file` if `framework.session.save_path` is set)Seesymfony#51097.Commits-------7f9998e [FrameworkBundle] Deprecate not setting some options
@nicolas-grekasnicolas-grekasforce-pushed theframework-bundle/deprecate-not-setting-router-uid-validator branch from878cda2 toaa3fbc5CompareAugust 17, 2023 16:15
@nicolas-grekas
Copy link
Member

Thank you@Jean-Beru.

nicolas-grekas added a commit that referenced this pull requestAug 23, 2023
…daubois)This PR was merged into the 7.0 branch.Discussion----------[FrameworkBundle] Remove config deprecations| Q             | A| ------------- | ---| Branch?       | 7.0| Bug fix?      | no| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets       | -| License       | MIT| Doc PR        | TodoFollow-up of:-#51325-#51357Commits-------4fe6f5b [FrameworkBundle] Remove config deprecations
This was referencedOct 21, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@stofstofstof requested changes

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@wouterjwouterjAwaiting requested review from wouterj

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

@ycerutoycerutoAwaiting requested review from ycerutoyceruto is a code owner

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

[RFC] Shrink recipes for v7
5 participants
@Jean-Beru@nicolas-grekas@stof@wouterj@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp