Final Class Yiisoft\YiiDevTool\App\Component\Console\ProcessOutput
| Inheritance | Yiisoft\ |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| callback() | Yiisoft\ |
|
| run() | Yiisoft\ |
Method Details
| public static Closure callback ( Yiisoft\ | ||
| $io | Yiisoft\ |
|
public static function callback(OutputManager $io): Closure
{
return static function (string $type, string $data) use ($io): void {
$io
->important()
->write($data);
};
}
| public static integer run ( \ | ||
| $process | \ |
|
| $io | Yiisoft\ |
|
public static function run(Process $process, OutputManager $io): int
{
return $process->run(self::callback($io));
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.