Use a safer auto-discover default #56
ragingdave
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
Hi @ragingdave, It is possible to set the paths where classes are auto discovered in settings.php We're not seeing such problems. As for the default of |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently settings auto-discover will attempt to discover all classes in the app path. This includes things like a Telescope provider that's only intended to be accessed in a dev/testing environment. This chewed up about an hour or so during a production release. Luckily no downtime as we are using zero downtime deployment methods and this was caught before any damage, but still wasn't caught until prod.
Perhaps a more sane default would be, albeit opinionated, but using app\Settings as a default discover path? I would imagine most apps would warrant a structure such as that, and would prevent being blindsided by this broad auto-discover logic.
Beta Was this translation helpful? Give feedback.
All reactions