PHP Class Jderusse\Warmup\Compiler\PhpServerCompiler

Inheritance: implements Jderusse\Warmup\Compiler\CompilerInterface
Mostrar archivo Open project: jderusse/composer-warmup Class Usage Examples

Public Methods

Method Description
__construct ( array $portRange = [8000, 8999] )
__destruct ( )
compile ( string $file )
startServer ( )
stopServer ( )
waitServer ( integer $timeout = 10 )

Private Methods

Method Description
findPort ( array $portRange )
isPortAvailable ( integer $port ) : boolean

Method Details

__construct() public method

public __construct ( array $portRange = [8000, 8999] )
$portRange array

__destruct() public method

public __destruct ( )

compile() public method

public compile ( string $file )
$file string

startServer() public method

public startServer ( )

stopServer() public method

public stopServer ( )

waitServer() public method

public waitServer ( integer $timeout = 10 )
$timeout integer