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

NEW: Stateless plugins, plugin registry as simple list #327

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

unclecheese
Copy link

@unclecheese unclecheese commented Nov 19, 2020

This fixes a number of errors that could come up when doing multiple schema builds where plugin state was polluted by preceding schemas. Plugins are no longer singletons, and are instead instantiated each time they are used. State that should be persisted for the duration of the build should be in static members, namespaced by the current schema.

Interdependent PRs

src/Schema/Registry/PluginRegistry.php Show resolved Hide resolved
_config/plugins.yml Show resolved Hide resolved
@unclecheese unclecheese changed the base branch from master to 4 November 23, 2020 01:03
@chillu chillu self-assigned this Nov 26, 2020
@unclecheese unclecheese force-pushed the 4 branch 2 times, most recently from e6199a3 to 09f1f49 Compare December 1, 2020 00:36
@chillu chillu merged commit 02f57fd into silverstripe:4 Dec 7, 2020
@unclecheese unclecheese deleted the pulls/master/plugin-away branch December 7, 2020 21:41
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.

2 participants