Skip to content
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

Make configuration and dependency injection container immutable #876

Merged
merged 2 commits into from
Dec 3, 2019

Conversation

goetas
Copy link
Member

@goetas goetas commented Nov 30, 2019

Q A
Type feature
BC Break yes
Fixed issues -

Summary

This PR makes the configuration and dependency injection container immutable. (frozen state)

This avoids having other services hacking into the DI container or config object at runtime (avoiding inconsistent retrieval of services

@goetas goetas force-pushed the immutable-configs branch 2 times, most recently from 7835607 to 0bfb8ac Compare December 1, 2019 07:25
@goetas
Copy link
Member Author

goetas commented Dec 1, 2019

@greg0ire @Koc thanks for the review. all suggestions have been implemented

@goetas goetas added this to the 3.0.0 milestone Dec 1, 2019
greg0ire
greg0ire previously approved these changes Dec 1, 2019
@greg0ire greg0ire dismissed their stale review December 1, 2019 15:06

The build does not pass, will approve when it does

This avoids having other services hacking into the DI container or config object at runtime (avoiding inconsistent retrieval of services
@goetas goetas merged commit 3e4b0c8 into doctrine:master Dec 3, 2019
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.

4 participants