-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] added a Process helper #10627
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
[Console] added a Process helper #10627
Conversation
OUT 42 | ||
RES Command ran successfully | ||
'; | ||
$successOutputProcessDebug = ' RUN \'php\' \'-r\' \'echo 42;\' |
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.
couldn't it be clearer if you use EOT<<<
syntax?
…neutron) This PR was merged into the master branch. Discussion ---------- [WCM][Console] Add Process Helper documentation | Q | A | ------------- | --- | Doc fix? | yes | New docs? | yes (symfony/symfony#10627) | Applies to | 2.5+ | Fixed tickets | n/a Commits ------- 1705231 [Console] Add Process Helper documentation
$process = $this->run($output, $cmd, $error, $callback); | ||
|
||
if (!$process->isSuccessful()) { | ||
throw new ProcessFailedException($process); |
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.
Does not seem to exist?!
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.
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.
however, the use statement is indeed missing
hello, sorry for the delay. I've just update the PR. It should be okay now. |
@@ -5,11 +5,14 @@ CHANGELOG | |||
----- | |||
|
|||
* deprecated the dialog helper (use the question helper instead) | |||
* added a Process helper | |||
* added a DebugFormatter helper |
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.
Those changes can't land in 2.5
as it was already released, it can land only in 2.6+
.
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 right :) it's fixed
👍 |
... but tests do not pass :( |
@fabpot I've fixed the console tests |
👍 |
This PR was merged into the 2.3-dev branch. Discussion ---------- [Console] added a Process helper | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | symfony/symfony-docs#3930 This PR replaces #10609. I've fixed minor errors, added tests and allowed to pass an array of arguments to escape as a command Commits ------- edc1bfe [Console] Add process helper tests faffe7e [Console] added a Process helper
This PR was merged into the master branch. Discussion ---------- [Console] Add Process Helper documentation | Q | A | ------------- | --- | Doc fix? | yes | New docs? | yes (symfony/symfony#10627) | Applies to | 2.5+ | Fixed tickets | n/a This PR replaces #3756 (merged prematurely) Commits ------- a9d6a8b [Console] Add Process Helper documentation
…uterJ) This PR was merged into the 2.6 branch. Discussion ---------- Added documentation about the DebugFormatter helper | Q | A | --- | --- | Doc fix? | no | New docs? | yes (symfony/symfony#10627) | Applies to | 2.6+ | Fixed tickets | #4256 When may want to add screenshots to the article, but to get this ready quick before 2.6 is released stable, I left them out now. Commits ------- 99f31fc Reordered list of helpers 6a02f68 Applied comments from our great reviewers 363e38f Added documentation about the DebugFormatter helper
This PR replaces #10609.
I've fixed minor errors, added tests and allowed to pass an array of arguments to escape as a command