PSR-4 compatible plugins #214
Replies: 3 comments 5 replies
-
Anything specific you're talking about? I'm not really sure what the problem is, I've never run into issues with namespace casing before. |
Beta Was this translation helpful? Give feedback.
-
While I suppose it's correct in that Winter's modules and plugins do not follow PSR-4 completely, the library does at least. I'm not sure we can introduce a hard requirement for PSR-4 given that it would make most plugins incompatible, but we could perhaps look to making it so that if people opt for PSR-4 pathing in their plugins, it should work. Modules and plugins are chiefly loaded through the |
Beta Was this translation helpful? Give feedback.
-
At the very least we should clearly document this diversion from PSR-4 in our developer guidelines / other documentation as applicable. |
Beta Was this translation helpful? Give feedback.
-
I was wondering if there was a reason why all of Winter CMS is not PSR-4 compatible, including plugins. It seems like everything must be lowercase, otherwise it will not work.
I think it would be nice if everything could be PSR-4 compatible to match the rest of Laravel.
I was just wondering if there would be any interest in wanting this, because for me personally it can be kind of annoying when creating new classes and stuff in Phpstorm and constantly having to correct it with the appropriate path and namespace since it keeps trying to use PSR-4, but Winter CMS doesn't work with PSR-4. Especially because the README states the project uses PSR-4 coding standards.
Beta Was this translation helpful? Give feedback.
All reactions