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

Add Uninstall Entrypoint #22

Open
XedinUnknown opened this issue May 31, 2021 · 0 comments
Open

Add Uninstall Entrypoint #22

XedinUnknown opened this issue May 31, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@XedinUnknown
Copy link
Member

The Problem

Many plugins have an e.g. uninstall.php entrypoint, which allows the plugin to be uninstalled (e.g. have its data removed, cache cleared, rules flushed, etc) when a plugin is uninstalled. It is therefore a good idea to have one bundled with the bootstrap, but none are currently available.

Suggested Solution

  1. Allow easier bootstrapping of the same application with different sets of modules.
  2. Add an uninstall module. Loaded last, it would be able to override any other configuration, replacing any extra services with perhaps no-op ones (e.g. to eliminate dependency on other plugins during uninstall), and to trigger an uninstall event that other modules could react to by performing their uninstall procedures.
  3. Load the uninstall module last, and only in the uninstall entrypoint.
@XedinUnknown XedinUnknown added the enhancement New feature or request label May 31, 2021
@XedinUnknown XedinUnknown added this to the v0.2 milestone May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant