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] Remove config deprecations#51428

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

Merged

Conversation

@alexandre-daubois
Copy link
Member

QA
Branch?7.0
Bug fix?no
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PRTodo

Follow-up of:

nicolas-grekas added a commit that referenced this pull requestAug 21, 2023
…session.save_path` and `framework.session.handler_id` at the same time (alexandre-daubois)This PR was merged into the 6.4 branch.Discussion----------[FrameworkBundle] Deprecate not setting both `framework.session.save_path` and `framework.session.handler_id` at the same time| Q             | A| ------------- | ---| Branch?       | 6.4| Bug fix?      | no| New feature?  | no| Deprecations? | yes| Tickets       | -| License       | MIT| Doc PR        | -This is the follow-up of#51428 (comment)Commits-------85faa69 [FrameworkBundle] Deprecate not setting both `framework.session.save_path` and `framework.session.handler_id` at the same time
@alexandre-dauboisalexandre-dauboisforce-pushed theoptions-default-values branch 2 times, most recently frome98b2db to9a05727CompareAugust 21, 2023 12:44
$v['session'] += [
'cookie_samesite' =>null,
'handler_id' =>'session.handler.native_file',
'save_path' =>'%kernel.cache_dir%/sessions',

Choose a reason for hiding this comment

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

whenhandler_id is non-null, save_path should still default to%kernel.cache_dir%/sessions, how can we deal with that?

Copy link
MemberAuthor

@alexandre-dauboisalexandre-dauboisAug 21, 2023
edited
Loading

Choose a reason for hiding this comment

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

I updated the condition:

if (!\array_key_exists('handler_id',$v['session'])) {$v['session']['handler_id'] =$v['session']['save_path'] ?'session.handler.native_file' :null;}elseif (null !==$v['session']['handler_id']) {$v['session']['save_path'] ??='%kernel.cache_dir%/sessions';}

Also updated changelog toMake the framework.session.save_path config option default to %kernel.cache_dir%/sessions if framework.session.handler_id is set or null otherwise

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I also added a call toinfo() to document this behavior

@alexandre-dauboisalexandre-dauboisforce-pushed theoptions-default-values branch 3 times, most recently fromcfaee6f to0106c5bCompareAugust 21, 2023 13:24
@alexandre-daubois
Copy link
MemberAuthor

alexandre-daubois commentedAug 23, 2023
edited
Loading

I'd saythis PR should be merged before this one to fix the errors raised byAttributeLoader.

I fixed theConfiguration.php file, thank you for the edits on it about default values

@alexandre-dauboisalexandre-dauboisforce-pushed theoptions-default-values branch 2 times, most recently from5ce5bac tod9c64ffCompareAugust 23, 2023 09:57
@nicolas-grekas
Copy link
Member

Thank you@alexandre-daubois.

@nicolas-grekasnicolas-grekas merged commit9b8f1e3 intosymfony:7.0Aug 23, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@GromNaNGromNaNGromNaN left review comments

Assignees

No one assigned

Projects

None yet

Milestone

7.0

Development

Successfully merging this pull request may close these issues.

4 participants

@alexandre-daubois@nicolas-grekas@GromNaN@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp