W3cubDocs

/Symfony 4.1

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.
https://api.symfony.com/4.1/Symfony/Bundle/WebServerBundle/WebServer.html