-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
[make:stimulus-controller] New Stimulus controller Maker command #1075
[make:stimulus-controller] New Stimulus controller Maker command #1075
Conversation
1d1d8f0
to
5177550
Compare
make:stimulus-controller
make:stimulus-controller
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking real good @JabriAbdelilah! a couple of comments below:
a8782eb
to
a963522
Compare
@jrushlow @94noni @zairigimad can you re-check, please? |
a963522
to
b4dae5f
Compare
|
||
<info>php %command.full_name% hello</info> | ||
|
||
If the argument is missing, the command will ask for the controller name interactively. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The extension also isnt it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I forget to update this file, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@94noni in fact, the extension is interactive, no need to add it in here
b4dae5f
to
7238a67
Compare
update test Coding standards Coding standards Make constants private Add targets and language Respeect Coding Standards Possibility to add values remove extra line
7238a67
to
9086819
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really nice addition
<?php if ($values) { ?> | ||
static values = { | ||
<?php foreach ($values as $value): ?> | ||
<?= $value['name'] ?>: <?= $value['type'] ?>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just I think the last ,
is to much no? I mean after the latest value type is written
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a trailing comma, it's a good practice in Javascript
@jrushlow this PR is ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @JabriAbdelilah for the new maker!
New Command to generate Stimulus Controller with targets and values.
test_controller.js
Tickets #809