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

Load addon components by convention #709

Closed
edalzell opened this issue Dec 6, 2021 · 0 comments · Fixed by statamic/cms#9270
Closed

Load addon components by convention #709

edalzell opened this issue Dec 6, 2021 · 0 comments · Fixed by statamic/cms#9270

Comments

@edalzell
Copy link

edalzell commented Dec 6, 2021

Right now addons have to explicitly define their resources, like tags, command, fieldtypes etc.

In Laravel, there are many places where code is auto-loaded "by convention", if the files are in the right spot and named appropriately.

I always forget to "register" my addon tags, would be lovely if all tags in the addon/Tags folder were automatically registered. Similarly with commands, field types, listeners, essentially anything that's a simple array of classes.

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 a pull request may close this issue.

1 participant