Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TrimmedBufferOutput.php

function TrimmedBufferOutput::__construct

Overrides Output::__construct

File

vendor/symfony/console/Output/TrimmedBufferOutput.php, line 27

Class

TrimmedBufferOutput
A BufferedOutput that keeps only the last N chars.

Namespace

Symfony\Component\Console\Output

Code

public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, ?OutputFormatterInterface $formatter = null) {
    if ($maxLength <= 0) {
        throw new InvalidArgumentException(\sprintf('"%s()" expects a strictly positive maxLength. Got %d.', __METHOD__, $maxLength));
    }
    parent::__construct($verbosity, $decorated, $formatter);
    $this->maxLength = $maxLength;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal