DESCRIPTOR_SPEC
DESCRIPTOR_SPEC = [
0 => ['pipe', 'r'],
// STDIN is a pipe that the child will read from
1 => ['pipe', 'w'],
// STDOUT is a pipe that the child will write to
2 => ['pipe', 'w'],
] : array<int,string[]>
Stores to STDIN of any process, specified by a command.
Usage example:
$log = new Logger('myLogger');
$log->pushHandler(new ProcessHandler('/usr/bin/php /var/www/monolog/someScript.php'));
$processors : callable[]
$formatter : ?\Monolog\Formatter\FormatterInterface
$level : int
$bubble : bool
$process : resource|bool|null
Holds the process to receive data on its STDIN.
$command : string
$cwd : string|null
$pipes : resource[]
__construct(string $command, mixed $level = Logger::DEBUG, bool $bubble = true, string|null $cwd = null) : mixed
| string | $command | Command for the process to start. Absolute paths are recommended, especially if you do not use the $cwd parameter. |
| mixed | $level | |
| bool | $bubble | |
| string|null | $cwd | "Current working directory" (CWD) for the process to be executed in. |