Skip to content

Make Module Registrar instances immutable #1562

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

Closed
wants to merge 1 commit into from
Closed

Make Module Registrar instances immutable #1562

wants to merge 1 commit into from

Conversation

joshdifabio
Copy link
Contributor

At present, registering modules via the module registrar can change the configuration of the application after it has already been bootstrapped. Allowing this will likely cause unexpected behaviour in the application. This change introduces immutability to instances of the module registrar; instances will now only return modules which were registered prior to their instantiation.

At present, registering modules via the module registrar can change the configuration of the application after it has already been bootstrapped. Allowing this will likely cause unexpected behaviour in the application. This change introduces immutability to instances of the module registrar; instances will now only return modules which were registered prior to their instantiation.
@magento-cicd2
Copy link
Contributor

We have automated a Magento Contributor License Agreement verifier for contributions sent to our GitHub projects.
Please see the CLA agreement in the Pull Request comments.

@joshdifabio
Copy link
Contributor Author

I'm closing this as the recently-introduced Component Registrar has invalidated this PR.

@joshdifabio joshdifabio closed this Oct 7, 2015
@joshdifabio joshdifabio deleted the feature/immutable-module-registrar branch October 7, 2015 09:57
okorshenko pushed a commit that referenced this pull request Oct 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants