From f299bd0968e52b87b8c2a2e1b39708626d824303 Mon Sep 17 00:00:00 2001 From: Eric GELOEN Date: Sat, 5 Jan 2013 14:32:58 +0100 Subject: [PATCH] [Console] Make getTerminalWith & getTerminalHeight public --- src/Symfony/Component/Console/Application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index db574589db..64f7127e4b 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -794,7 +794,7 @@ class Application * * @return int|null */ - protected function getTerminalWidth() + public function getTerminalWidth() { if (defined('PHP_WINDOWS_VERSION_BUILD') && $ansicon = getenv('ANSICON')) { return preg_replace('{^(\d+)x.*$}', '$1', $ansicon); @@ -810,7 +810,7 @@ class Application * * @return int|null */ - protected function getTerminalHeight() + public function getTerminalHeight() { if (defined('PHP_WINDOWS_VERSION_BUILD') && $ansicon = getenv('ANSICON')) { return preg_replace('{^\d+x\d+ \(\d+x(\d+)\)$}', '$1', trim($ansicon));