ServerFactory
in package
FinalYes
Table of Contents
Properties
- $eventDispatcher : EventDispatcher
- $logger : LoggerInterface
Methods
- __construct() : mixed
- createDevServer() : Server
Properties
$eventDispatcher read-only
private
EventDispatcher
$eventDispatcher
$logger
private
LoggerInterface
$logger
Methods
__construct()
public
__construct(LoggerInterface $logger, EventDispatcher $eventDispatcher) : mixed
Parameters
- $logger : LoggerInterface
- $eventDispatcher : EventDispatcher
createDevServer()
public
createDevServer(string $soureDirectory, FlySystemAdapter $files, string $host, string $listen, int $port[, string $indexFile = 'index.html' ]) : Server
Parameters
- $soureDirectory : string
- $files : FlySystemAdapter
- $host : string
- $listen : string
- $port : int
- $indexFile : string = 'index.html'