class WebServer

Manages a local HTTP web server.

Constants

STARTED

STOPPED

Methods

run(WebServerConfig $config, $disableOutput = true, callable $callback = null)

No description

start(WebServerConfig $config, $pidFile = null)

No description

stop($pidFile = null)

No description

getAddress($pidFile = null)

No description

isRunning($pidFile = null)

No description

Details

run(WebServerConfig $config, $disableOutput = true, callable $callback = null)

Parameters

WebServerConfig $config
$disableOutput
callable $callback

start(WebServerConfig $config, $pidFile = null)

Parameters

WebServerConfig $config
$pidFile

stop($pidFile = null)

Parameters

$pidFile

getAddress($pidFile = null)

Parameters

$pidFile

isRunning($pidFile = null)

Parameters

$pidFile