-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
Addon update called many times #11082
Comments
Yup, 9 service providers and it's called 9 times |
Do all of those service providers extend Statamic's |
Yes they do, because they have tags etc and I want them loaded. |
Okay! We can probably provide a way to opt-out of auto registration then. |
How will that help? I only have ONE update script at the correct relative location, why is that one getting called for the other service providers? |
For the record: we've chatted this out on Slack. Instead of autoloading based on the addon's path, we can use the service provider's path. |
Bug description
Our addon's updater gets called many times:
How to reproduce
Run
composer dump-autoload
when your add-on's updater looks like:It's using the auto-loading that was recently added.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: