Cake\Console\ConsoleIo::__construct PHP Méthode

__construct() public méthode

Constructor
public __construct ( ConsoleOutput $out = null, ConsoleOutput $err = null, Cake\Console\ConsoleInput $in = null, Cake\Console\HelperRegistry $helpers = null )
$out ConsoleOutput A ConsoleOutput object for stdout.
$err ConsoleOutput A ConsoleOutput object for stderr.
$in Cake\Console\ConsoleInput A ConsoleInput object for stdin.
$helpers Cake\Console\HelperRegistry A HelperRegistry instance
    public function __construct(ConsoleOutput $out = null, ConsoleOutput $err = null, ConsoleInput $in = null, HelperRegistry $helpers = null)
    {
        $this->_out = $out ? $out : new ConsoleOutput('php://stdout');
        $this->_err = $err ? $err : new ConsoleOutput('php://stderr');
        $this->_in = $in ? $in : new ConsoleInput('php://stdin');
        $this->_helpers = $helpers ? $helpers : new HelperRegistry();
        $this->_helpers->setIo($this);
    }