AbstractDriver
abstract class AbstractDriver implements DriverInterface
Properties
| protected Channel|null | $stopSignal | ||
| protected bool | $stopping |
Methods
Determine if the current OS is macOS.
Stop the active watch lifecycle.
Determine whether the driver has been stopped.
Run a polling scan until the driver is stopped.
Resolve configured watch paths to absolute targets.
Group watch paths by their resolved target.
Filter targets that currently exist.
Execute a shell command using Swoole's coroutine-aware exec.
Escape a list of arguments for interpolation into a shell command.
Details
at line 19
__construct(Option $option)
No description
at line 26
bool
isDarwin()
Determine if the current OS is macOS.
at line 34
void
stop()
Stop the active watch lifecycle.
at line 51
protected bool
isStopping()
Determine whether the driver has been stopped.
The state may change while hooked I/O yields to another coroutine.
at line 59
protected void
watchAtInterval(float $seconds, callable $scan)
Run a polling scan until the driver is stopped.
at line 96
protected array
resolveTargets(array $watchPaths)
Resolve configured watch paths to absolute targets.
at line 116
protected array
groupWatchPathsByTarget(array $watchPaths)
Group watch paths by their resolved target.
at line 137
protected array
existingTargets(array $targets)
Filter targets that currently exist.
at line 149
protected array
exec(string $command)
Execute a shell command using Swoole's coroutine-aware exec.
Every interpolated argument must be escaped before it reaches this boundary.
at line 165
protected string
shellArguments(array $arguments)
Escape a list of arguments for interpolation into a shell command.