ContextFactory
in
Table of Contents
Methods
Methods
start()
Creates a new execution context.
public
start(string|array<int, string> $script[, Cancellation|null $cancellation = null ]) : Context
Parameters
- $script : string|array<int, string>
-
Path to PHP script or array with first element as path and following elements as options to the PHP script (e.g.: ['bin/worker', 'ArgumentValue', '--option', 'OptionValue'].
- $cancellation : Cancellation|null = null