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

[HttpKernel] allow ignoring kernel.reset methods that don't exist#43983

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
fabpot merged 1 commit intosymfony:5.4fromnicolas-grekas:reset-ignore-invalid
Nov 9, 2021

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?5.4
Bug fix?yes
New feature?yes
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

When a service is built by a factory, we don't always know if the resulting instance will implementResetInteface or not.
One such service ishttp_client:HttpClient::create() might return a curl-one or a native-one, and only the former is resettable.

This PR makes it possible to make a reset conditional, aka by ignoring when the reset method doesn't exist.
This is both a new feature for HttpKernel and a bugfix for thehttp_client service.
That's why I'm targeting 5.4.

@nicolas-grekasnicolas-grekas changed the title[HttpKernel] allow ignoring kernel.reset methods that don't exist[HttpKernel] allow ignoring kernel.reset for methods that don't existNov 9, 2021
@nicolas-grekasnicolas-grekas changed the title[HttpKernel] allow ignoring kernel.reset for methods that don't exist[HttpKernel] allow ignoring kernel.reset methods that don't existNov 9, 2021
@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commitba061fc intosymfony:5.4Nov 9, 2021
@fabpotfabpot deleted the reset-ignore-invalid branchNovember 9, 2021 20:38
This was referencedNov 14, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp