-
Notifications
You must be signed in to change notification settings - Fork 4
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
use symfony process to run shell command #13
use symfony process to run shell command #13
Conversation
1dc7574
to
4317099
Compare
|
||
$process->run(); | ||
|
||
if (!$process->isSuccessful()) { |
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 bit is taken from the Process exception. I didn't want to expose a Symfony exception here as it's an implementation detail.
Thanks, I'm currently cleaning it up a bit so it works on older versions of PHP and Magento as to not break backwards compatibility and will then test it out a bit. I'm working on all this, on the following branch: https://github.com/baldwin-agency/magento2-module-less-js-compiler/commits/symfony-process/ |
It's good point about having a config option to display errors. I was considering it too. I just wanted to push the code to get your early feedback. I forgot people still may use stores on PHP pre 8. |
Alrighty, I think I have something that works, see the changes here: v1-develop...symfony-process Could you give it a try, by using the It improves some things:
I've tested it with:
|
@hostep I had a chance to test your changes with Magento 2.4.6-p6 | PHP 8.1 | symfony/process 5.4.23 and configuration works. If you want a bit more flexibility for the flag you could use: Rest looks fine to me. |
Todo: