-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Make getTerminalWith & getTerminalHeight public #6571
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
Conversation
This PR was merged into the 2.0 branch. Commits ------- f299bd0 [Console] Make getTerminalWith & getTerminalHeight public Discussion ---------- [Console] Make getTerminalWith & getTerminalHeight public Bug fix: yes Feature addition: yes Backwards compatibility break: no Fixes the following tickets: ~ Todo: - License of the code: MIT Documentation PR: ~ After demand in #6567, I open an other one on the 2.0 branch.
Actually IT IS an effective API BC break. If you have extended an ping @fabpot |
I mean, I can see that you might need this information, but introducing BC break just in sake of getting it sounds bad to me. |
Oh my, it's even in |
@fabpot IMO, we need to at least revert this PR for versions prior 2.2 and either provide another way to get this information in user-space or do apply this BC break for 2.2+ only (and I still don't think it's a good thing to do). |
reverted |
* 2.0: Revert "merged branch egeloen/f-2.0-terminal-width (PR #6571)"
As of 2.1, you can use |
@fabpot just wanted to propose introducing this method :D Didn't know it's already there since 2.1. I think that's it then. |
* 2.1: [Console] made Application::getTerminalDimensions() public Revert "merged branch egeloen/f-2.0-terminal-width (PR #6571)" [2.1] [Console] Added getTerminalDimensions() with fix for osx/freebsd Restrict Monolog version to be in version `<1.3`. Because of conflict between `HttpKernel/Log/LoggerInterface` and `Psr\Log\LoggerInterface` (PSR-3) Conflicts: composer.json
@fabpot thanks for a quick answer, btw ;) |
Bug fix: yes
Feature addition: yes
Backwards compatibility break: no
Fixes the following tickets: ~
Todo: -
License of the code: MIT
Documentation PR: ~
After demand in #6567, I open an other one on the 2.0 branch.