ConsoleKit\Command::context PHP Method

context() public method

$this->context(array('quote' => ' * '), function($f) { $f->writeln('quoted text'); })
public context ( array $formatOptions, Closure $closure )
$formatOptions array
$closure Closure
    public function context(array $formatOptions, Closure $closure)
    {
        $formater = new FormatedWriter($this->console, $formatOptions);
        return $closure($formater);
    }