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

[Console] Fix Console QuestionHelper $app to $this#3952

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

Closed
eko wants to merge1 commit intosymfony:masterfromeko:master

Conversation

@eko
Copy link
Contributor

@ekoeko commentedJun 13, 2014

OnQuestionHelper page, commands examples for callinggetHelperSet use the following (where $app is undefined):

$app->getHelperSet()->get('question');

I've changed it to correct:

$this->getHelperSet()->get('question');

@cordoval
Copy link
Contributor

true although you could have gotten the $app from $app = $this->getApplication(), also notice that $this->getApplication() is tagged @api so it is here to stay. But yeah this is a 👍

@wouterj
Copy link
Member

👍 we never told what the$app variable contains, so it is confusing. Thanks for fixing it!

However, maybe changing it to$this->getHelper('question') is even better? (but that can be done in another PR too)

Fix getHelperSet() to getHelper()Typo fixMove getHelperSet() to getHelper() in other files
@eko
Copy link
ContributorAuthor

eko commentedJun 14, 2014

Yes, it was confusing.

I've updated the PR to use$this->getHelper('...') instead of$this->getHelperSet()->get('...')

@cordoval
Copy link
Contributor

👍

@weaverryan
Copy link
Member

Hi guys!

Yes, this is much better. But, I need your help! Most of these changes apply to all versions (back to 2.3), but some (QuestionHelper) only apply to Symfony 2.5. Here's what we need to do:

  1. Rebase this PR against the 2.3 branch (usingrebase --onto...) or create a new PR against the 2.3 branch with only the 2.3 changes
  2. Create a second PR with the 2.5-specific features.

@eko Can you help out with this?

Thanks!

@eko
Copy link
ContributorAuthor

eko commentedJun 21, 2014

Hi@weaverryan,

Alright, I will create 2 new PRs against 2.3 and 2.5 branches in the week-end.

Thank you

@weaverryan
Copy link
Member

Thanks@eko!

@eko
Copy link
ContributorAuthor

eko commentedJul 5, 2014

Hi@weaverryan,

I've sent the 2 PRs against 2.3 and 2.5 branches:

So I think this PR can be closed?

Thank you

weaverryan added a commit that referenced this pull requestJul 11, 2014
…getHelper() (eko)This PR was merged into the 2.3 branch.Discussion----------[Console] Fix Console component getHelperSet()->get() to getHelper()| Q                  | A          || ---------------- |:---------:|| Doc fix?        | Yes || New docs?   | No   || Applies to     | 2.3   || Fixed tickets | No   |On Console component, I've fixed the following calls:```php$this->getHelperSet()->get('dialog');```to:```php$this->getHelper('dialog');```This is related to original PR#3952Commits-------9207f68 [Console] Fix Console component getHelperSet()->get() to getHelper()
weaverryan added a commit that referenced this pull requestJul 11, 2014
…getHelper() method (eko)This PR was merged into the 2.5 branch.Discussion----------[Console] Fix Console component $app to $this and use of getHelper() method| Q                  | A          || ---------------- |:---------:|| Doc fix?        | Yes || New docs?   | No   || Applies to     | 2.5   || Fixed tickets | No   |On Console component, I've fixed the following:### Use of getHelper() method```php$this->getHelperSet()->get('dialog');```to:```php$this->getHelper('dialog');```### Also fixed unusued $app variable to $thisThis is related to original PR#3952Commits-------1f4dc76 [Console] Fix Console some $app to $this and getHelperSet()->get() to getHelper()
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@eko@cordoval@wouterj@weaverryan

[8]ページ先頭

©2009-2025 Movatter.jp