Copied!

ConsoleOutputInterface is the interface implemented by ConsoleOutput class.

This adds information about stderr and section output stream.

AbstractInterface
Constants
public Symfony\Component\Console\Output\OutputInterface::OUTPUT_NORMAL = 1
public Symfony\Component\Console\Output\OutputInterface::OUTPUT_PLAIN = 4
public Symfony\Component\Console\Output\OutputInterface::OUTPUT_RAW = 2
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_DEBUG = 256
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL = 32
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_QUIET = 16
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_SILENT = 8
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_VERBOSE = 64
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_VERY_VERBOSE = 128
Methods
public abstract getErrorOutput() : Symfony\Component\Console\Output\OutputInterface
 

Gets the OutputInterface for errors.

public abstract Symfony\Component\Console\Output\OutputInterface::getFormatter() : Symfony\Component\Console\Formatter\OutputFormatterInterface
 

Returns current output formatter instance.

public abstract Symfony\Component\Console\Output\OutputInterface::getVerbosity() : int
 

Gets the current verbosity of the output.

  • return self::VERBOSITY_*
public abstract Symfony\Component\Console\Output\OutputInterface::isDebug() : bool
 

Returns whether verbosity is debug (-vvv).

public abstract Symfony\Component\Console\Output\OutputInterface::isDecorated() : bool
 

Gets the decorated flag.

public abstract Symfony\Component\Console\Output\OutputInterface::isQuiet() : bool
 

Returns whether verbosity is quiet (-q).

public abstract Symfony\Component\Console\Output\OutputInterface::isVerbose() : bool
 

Returns whether verbosity is verbose (-v).

public abstract Symfony\Component\Console\Output\OutputInterface::isVeryVerbose() : bool
 

Returns whether verbosity is very verbose (-vv).

public abstract section() : Symfony\Component\Console\Output\ConsoleSectionOutput
public abstract Symfony\Component\Console\Output\OutputInterface::setDecorated(bool $decorated) : void
 

Sets the decorated flag.

public abstract setErrorOutput(Symfony\Component\Console\Output\OutputInterface $error) : void
public abstract Symfony\Component\Console\Output\OutputInterface::setFormatter(Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter) : void
public abstract Symfony\Component\Console\Output\OutputInterface::setVerbosity(int $level) : void
 

Sets the verbosity of the output.

  • param self::VERBOSITY_* $level
public abstract Symfony\Component\Console\Output\OutputInterface::write(Traversable|array|string $messages, bool $newline = false, int $options = 0) : void
 

Writes a message to the output.

  • param bool $newline Whether to add a newline
  • param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
public abstract Symfony\Component\Console\Output\OutputInterface::writeln(Traversable|array|string $messages, int $options = 0) : void
 

Writes a message to the output and adds a newline at the end.

  • param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration