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

Appearance settings

[DependencyInjection] Document Container invalid behavior #17903

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

Conversation

alamirault
Copy link
Contributor

@alamirault alamirault commented Feb 13, 2023

Try fix #8759

Explanations come from repository
https://github.com/symfony/symfony/blob/8cf5f021fae00975c67a3a50806edbef8bab973b/src/Symfony/Component/DependencyInjection/Container.php#L34-L44

(I will make a PR on symfony to document RUNTIME_EXCEPTION_ON_INVALID_REFERENCE when I will unterstand it)

components/dependency_injection.rst Outdated Show resolved Hide resolved
components/dependency_injection.rst Outdated Show resolved Hide resolved
components/dependency_injection.rst Outdated Show resolved Hide resolved
components/dependency_injection.rst Outdated Show resolved Hide resolved
@javiereguiluz javiereguiluz force-pushed the feature/8759-document-container-get-invalid-behavior branch from a8b45ad to 6f1a620 Compare February 15, 2023 09:51
@javiereguiluz javiereguiluz merged commit 7fa3cca into symfony:6.2 Feb 15, 2023
@javiereguiluz
Copy link
Member

Antoine, thanks a lot for taking care of solving this issue (which was first reported in 2017!!).

While merging I tweak some things (fd9b155) (change the heading to be consistent with the kind of headings we use in docs; wrap long lines and reorder the options) but your original contribution was great. Thanks.

nicolas-grekas added a commit to symfony/symfony that referenced this pull request Feb 15, 2023
…INVALID_REFERENCE` behavior (alamirault)

This PR was merged into the 5.4 branch.

Discussion
----------

[DependencyInjection] Add doc for `RUNTIME_EXCEPTION_ON_INVALID_REFERENCE` behavior

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

While working on documentation of container behaviors symfony/symfony-docs#17903, I saw `RUNTIME_EXCEPTION_ON_INVALID_REFERENCE` was not documented

Commits
-------

308e59e [DependencyInjection] Add doc for RUNTIME_EXCEPTION_ON_INVALID_REFERENCE behavior
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.

[DI] ContainerInterface lacks documentation regarding behavior constants
5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.