You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Application.php
+10-20Lines changed: 10 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -675,26 +675,16 @@ public function renderException(\Exception $e, OutputInterface $output)
675
675
}
676
676
}
677
677
678
-
/**
679
-
* Returns the current terminal.
680
-
*
681
-
* @return Terminal
682
-
*/
683
-
publicfunctiongetTerminal()
684
-
{
685
-
return$this->terminal;
686
-
}
687
-
688
678
/**
689
679
* Tries to figure out the terminal width in which this application runs.
690
680
*
691
681
* @return int|null
692
682
*
693
-
* @deprecated since version 3.2, to be removed in 4.0. Use the getTerminal() method instead.
683
+
* @deprecated since version 3.2, to be removed in 4.0. Create a Terminal instance instead.
694
684
*/
695
685
protectedfunctiongetTerminalWidth()
696
686
{
697
-
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Use getTerminal() instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
687
+
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
698
688
699
689
return$this->terminal->getWidth();
700
690
}
@@ -704,11 +694,11 @@ protected function getTerminalWidth()
704
694
*
705
695
* @return int|null
706
696
*
707
-
* @deprecated since version 3.2, to be removed in 4.0. Use the getTerminal() method instead.
697
+
* @deprecated since version 3.2, to be removed in 4.0. Create a Terminal instance instead.
708
698
*/
709
699
protectedfunctiongetTerminalHeight()
710
700
{
711
-
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Use getTerminal() instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
701
+
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
712
702
713
703
return$this->terminal->getHeight();
714
704
}
@@ -718,11 +708,11 @@ protected function getTerminalHeight()
718
708
*
719
709
* @return array Array containing width and height
720
710
*
721
-
* @deprecated since version 3.2, to be removed in 4.0. Use the getTerminal() method instead.
711
+
* @deprecated since version 3.2, to be removed in 4.0. Create a Terminal instance instead.
722
712
*/
723
713
publicfunctiongetTerminalDimensions()
724
714
{
725
-
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Use getTerminal() instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
715
+
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Use getTerminal() instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
734
+
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Set the COLUMNS and LINES env vars instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception4.txt', $tester->getErrorOutput(true), '->renderException() wraps messages when they are bigger than the terminal');
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_doublewidth2.txt', $tester->getErrorOutput(true), '->renderException() wraps messages when they are bigger than the terminal');
0 commit comments