Skip to content

[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

Merged
merged 2 commits into from
Jun 11, 2014

Conversation

romainneutron
Copy link
Contributor

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

OUT 42
RES Command ran successfully
';
$successOutputProcessDebug = ' RUN \'php\' \'-r\' \'echo 42;\'
Copy link
Contributor

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?

@stof stof added the Console label Apr 9, 2014
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Apr 12, 2014
…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);
Copy link
Contributor

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?!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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

@romainneutron
Copy link
Contributor Author

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
Copy link
Contributor

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+.

Copy link
Contributor Author

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

@fabpot
Copy link
Member

fabpot commented Jun 11, 2014

👍

@fabpot
Copy link
Member

fabpot commented Jun 11, 2014

... but tests do not pass :(

@romainneutron
Copy link
Contributor Author

@fabpot I've fixed the console tests

@nicolas-grekas
Copy link
Member

👍

@fabpot fabpot merged commit edc1bfe into symfony:master Jun 11, 2014
fabpot added a commit that referenced this pull request Jun 11, 2014
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
@romainneutron romainneutron deleted the fabpot-console-process-helper branch June 11, 2014 08:36
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Oct 17, 2014
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
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Dec 16, 2014
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants