-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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] Fix Console QuestionHelper $app to $this #3952
Conversation
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 👍 |
👍 we never told what the However, maybe changing it to |
Fix getHelperSet() to getHelper() Typo fix Move getHelperSet() to getHelper() in other files
Yes, it was confusing. I've updated the PR to use |
👍 |
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 (
@eko Can you help out with this? Thanks! |
Hi @weaverryan, Alright, I will create 2 new PRs against 2.3 and 2.5 branches in the week-end. Thank you |
Thanks @eko! |
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 |
…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 #3952 Commits ------- 9207f68 [Console] Fix Console component getHelperSet()->get() to getHelper()
…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 $this This is related to original PR #3952 Commits ------- 1f4dc76 [Console] Fix Console some $app to $this and getHelperSet()->get() to getHelper()
On
QuestionHelper
page, commands examples for callinggetHelperSet
use the following (where $app is undefined):I've changed it to correct: