Symfony\Component\Console\Application::getTerminalWidth PHP Méthode

getTerminalWidth() protected méthode

Tries to figure out the terminal width in which this application runs.
Deprecation: since version 3.2, to be removed in 4.0. Create a Terminal instance instead.
protected getTerminalWidth ( ) : integer | null
Résultat integer | null
    protected function getTerminalWidth()
    {
        @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->getWidth();
    }

Usage Example

Exemple #1
0
 /**
  * {@inheritDoc}
  */
 public function getTerminalWidth()
 {
     return parent::getTerminalWidth();
 }