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

[DI] Fix initialization of legacy containers by delaying include_once#25858

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:3.4fromnicolas-grekas:di-init
Jan 23, 2018

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJan 20, 2018
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

Best reviewed ignoring whitespaces:
https://github.com/symfony/symfony/pull/25858/files?w=1

Noticed while removing a package: silencing the failinginclude_once as introduced in#25255 is not working for the$oldContainer inKernel, and fails with a fatal error when an include succeeds but the class inside misses a parent.

Delaying the calls toinclude_once to the moment where the fresh container is actually used first, when setting the "kernel" service, works around the situation.

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit5e750ec intosymfony:3.4Jan 23, 2018
fabpot added a commit that referenced this pull requestJan 23, 2018
…nclude_once (nicolas-grekas)This PR was merged into the 3.4 branch.Discussion----------[DI] Fix initialization of legacy containers by delaying include_once| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Best reviewed ignoring whitespaces:https://github.com/symfony/symfony/pull/25858/files?w=1Noticed while removing a package: silencing the failing `include_once` as introduced in#25255 is not working for the `$oldContainer` in `Kernel`, and fails with a fatal error when an include succeeds but the class inside misses a parent.Delaying the calls to `include_once` to the moment where the fresh container is actually used first,  when setting the "kernel" service, works around the situation.Commits-------5e750ec [DI] Fix initialization of legacy containers by delaying include_once
@nicolas-grekasnicolas-grekas deleted the di-init branchJanuary 23, 2018 07:00
This was referencedJan 29, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp