Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Command controller tweaks to #5062#5299

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 2 commits into2.3fromcommand-controller-tweaks
May 23, 2015
Merged

Conversation

weaverryan
Copy link
Member

QA
Doc fix?yes#5062
New docs?no
Applies to2.3+
Fixed tickets#5062

Hi guys!

This is a proofread and bug fix after merging#5062. Notably, I changed to use theBufferedOutput and returned a Response from the controller instead of the string.

Please let me know if you see any errors - I was coding this right inside the docs 😇.

Thanks!


return $content;
return new Response($content);
Copy link
Member

Choose a reason for hiding this comment

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

missing use statement for response

@weaverryanweaverryanforce-pushed thecommand-controller-tweaks branch from2457940 to59f8c95CompareMay 23, 2015 16:18
@weaverryanweaverryan merged commitaad7277 into2.3May 23, 2015
weaverryan added a commit that referenced this pull requestMay 23, 2015
This PR was merged into the 2.3 branch.Discussion----------Command controller tweaks to#5062| Q             | A| ------------- | ---| Doc fix?      | yes#5062| New docs?     | no| Applies to    | 2.3+| Fixed tickets |#5062Hi guys!This is a proofread and bug fix after merging#5062. Notably, I changed to use the `BufferedOutput` and returned a Response from the controller instead of the string.Please let me know if you see any errors - I was coding this right inside the docs 😇.Thanks!Commits-------aad7277 Fixing things thanks to Wouter59f8c95 Tweaks to the new using commands in a controller article
@weaverryanweaverryan deleted the command-controller-tweaks branchMay 23, 2015 16:35
@rvanlaak
Copy link
Contributor

👍

Never heard of theBufferedOutput, that solved a big problem I was facing earlier this month.

@@ -30,7 +30,8 @@ allows you to directly execute a registered command inside your controller::
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\StreamOutput;
use Symfony\Component\Console\Output\BufferedOutput;
Copy link
Member

Choose a reason for hiding this comment

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

this is wrong. BufferedOutput does not exist in 2.3. It is a 2.4+ feature

wouterj added a commit that referenced this pull requestJun 19, 2015
… (xabbuh)This PR was merged into the 2.3 branch.Discussion----------[Cookbook][Console] don't use BufferedOutput on Symfony 2.3| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | all| Fixed tickets |#5299 (comment)As@stof pointed out in#5299 (comment), the `StreamOutput` class is not available on Symfony 2.3. This should be reverted after merging it up to the `2.6` branch.Commits-------4e9e0dd don't use BufferedOutput on Symfony 2.3
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@weaverryan@rvanlaak@stof@wouterj

[8]ページ先頭

©2009-2025 Movatter.jp