Documentation

ContextFactory
in

Table of Contents

Methods

start()  : Context
Creates a new execution context.

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
Return values
Context

        
On this page

Search results