Cake\Console\ConsoleOutput::__construct PHP Метод

__construct() публичный Метод

Checks for a pretty console environment. Ansicon and ConEmu allows pretty consoles on windows, and is supported.
public __construct ( string $stream = 'php://stdout' )
$stream string The identifier of the stream to write output to.
    public function __construct($stream = 'php://stdout')
    {
        $this->_output = fopen($stream, 'w');
        if (DIRECTORY_SEPARATOR === '\\' && !(bool) env('ANSICON') && env('ConEmuANSI') !== 'ON' || function_exists('posix_isatty') && !posix_isatty($this->_output)) {
            $this->_outputAs = self::PLAIN;
        }
    }