Uh oh!
There was an error while loading. Please reload this page.
fix: forbid single words as cell name input in make:cell - #7479
fix: forbid single words as cell name input in make:cell#7479paulbalandan wants to merge 4 commits into
make:cell#7479Conversation
lonnieezell
commented
May 3, 2023
This seems like the wrong fix, honestly. This is why originally the intent was to have either the class with I know we had a cleanup recently that I didn't get a chance to look into, but if it removed the appending from either one then that should be fixed so that one or the other gets something appended. |
kenjis
commented
May 4, 2023
The recent fix is #7392 @lonnieezell Do you mean the original intent is like this?
It seems to be confusing. The current naming rule is already complicated and I personally would like to see them simplified.
or
or
|
lonnieezell
commented
May 4, 2023
The original intent was, I believe: Controller: BlogCell.php It's nice and simple, matches what we have a tendency to do elsewhere (view is lowercased, class has function attached, like UserModel or UserController). |
kenjis
commented
May 4, 2023
If we follow the following rule (it is valid in the current implementation), Controller: BlogCell.php @lonnieezell |
paulbalandan
commented
May 4, 2023
The appending of the |
lonnieezell
commented
May 4, 2023
That's the way I would handle it, yes.
While I understand what you're saying I think it's a better experience to automatically add it then to throw and error and make them try again. |
paulbalandan
commented
May 4, 2023
@lonnieezell If I understand correctly, the specification would be: $ php spark make:cell BlogCellFile created: APPPATH . 'Cells/BlogCell.php'File created: APPPATH . 'Cells/blog.php'$ php spark make:cell AnotherFile created: APPPATH . 'Cells/AnotherCell.php'File created: APPPATH . 'Cells/another.php' |
lonnieezell
commented
May 4, 2023
@paulbalandan Correct. |
Description
Fixes#7472
Checklist: