-
-
Notifications
You must be signed in to change notification settings - Fork 452
Use composer PHP script for PHP_CS setup #2467
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
Conversation
|
Nice! For me it works. Only downside is that |
61a762e to
8837b3a
Compare
8837b3a to
77f5531
Compare
I put a check for The only thing we could do to get around exec being disabled is if PHP_CS has a PHP API we could call. Not sure it's needed unless people will be running dev tools on shared hosting, though. |
|
Just an idea ...
|
|
@sreichel The interface is a good idea. I had named it It's getting late here so I'll make the changes tomorrow (or a maintainer is free to push). |
This is what i really like from M2 ... Single Responsibility for each class. |
|
👍 on all the changes! |
|
This scripts will for sure be used for some other tasks but I think now we should go with #2470 :-) |
Definitly! 👍 |
|
@justinbeaty's work must be appreciated. Since my finding yesterday and until today there have been constructive discussions. The approach in this PR is interesting and shows that the use of Composer is extremely powerful for this project. |
|
#2470 is better :) At least we have a framework set up in the case we need custom composer scripts that aren't handled by a plugin. |
Description (*)
There were a few issues with the merge of #2400
/usr/local/opt/[email protected]/bin/php composer install(ref)I fixed this by making a PHP script that should be platform independent and fix all three issues.
Related Pull Requests
#2400
Fixed Issues (if relevant)
Manual testing scenarios (*)
composer installdoesn't throw an error on Windows -- @addison74 please check thiscomposer installworks correctly when calling with a non-system php install -- @fballiano please check thisQuestions or comments
I added the
dev/scriptsdirectory and an autoload entry incomposer.json. The new directory could be used for other composer scripts.Contribution checklist (*)