.stub files should be published but NOT used, whilst .php files should be published AND used #156
Sophist-UK
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is an issue with config, migration and routes files.
In each case these files are allowed to be named as either *.php or *.php.stub files, and currently all files named in the relevant has... method are both published and used.
However, in my opinion (and I know this does create backwards compatability) there should be a difference between these two file types whereby *.php.stub files are only for publishing, whereas *.php files are both published and used (i.e. config files are merged, migrations are loaded for running and routes are loaded).
So for example:
As I say, this would create backwards compatibility and should therefore only be changed in a new major version.
Beta Was this translation helpful? Give feedback.
All reactions