Symfony\Component\Console\Application::getTerminalHeight PHP Method

getTerminalHeight() protected method

Tries to figure out the terminal height in which this application runs.
Deprecation: since version 3.2, to be removed in 4.0. Create a Terminal instance instead.
protected getTerminalHeight ( ) : integer | null
return integer | null
    protected function getTerminalHeight()
    {
        @trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
        return $this->terminal->getHeight();
    }

Usage Example

コード例 #1
0
ファイル: Application.php プロジェクト: lightglitch/console
 /**
  * {@inheritDoc}
  */
 public function getTerminalHeight()
 {
     return parent::getTerminalHeight();
 }