W3cubDocs

/Symfony 3.3

WebServer

class WebServer

Manages a local HTTP web server.

Constants

STARTED
STOPPED

Methods

run(WebServerConfig $config, $disableOutput = true, callable $callback = null)
start(WebServerConfig $config, $pidFile = null)
stop($pidFile = null)
getAddress($pidFile = null)
isRunning($pidFile = null)

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Bundle/WebServerBundle/WebServer.html