StdListener
extends EventEmitter
in package
implements
ListenerInterface
Table of Contents
Interfaces
- ListenerInterface
Constants
- TYPE_ALL = 'all'
Properties
- $data : array<string|int, mixed>
- Container for the outputted lines.
- $eventName : string
- Name of the emitted event.
Methods
- __construct() : mixed
- forwardedEvents() : mixed
- get() : ProcessOutput
- Returns the collected output lines.
- handle() : void
- Handler for a new line of data.
Constants
TYPE_ALL
public
mixed
TYPE_ALL
= 'all'
Properties
$data
Container for the outputted lines.
private
array<string|int, mixed>
$data
= [self::TYPE_ALL => [], \Symfony\Component\Process\Process::ERR => [], \Symfony\Component\Process\Process::OUT => []]
$eventName
Name of the emitted event.
private
string
$eventName
Methods
__construct()
public
__construct([string $eventName = 'listen' ]) : mixed
Parameters
- $eventName : string = 'listen'
forwardedEvents()
public
forwardedEvents() : mixed
get()
Returns the collected output lines.
public
get() : ProcessOutput
Return values
ProcessOutputhandle()
Handler for a new line of data.
public
handle(string $type, string $data) : void
Parameters
- $type : string
- $data : string