PHP Class Jderusse\Warmup\Compiler\PhpServerCompiler

Inheritance: implements Jderusse\Warmup\Compiler\CompilerInterface
Afficher le fichier Open project: jderusse/composer-warmup Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
findPort ( array $portRange )
isPortAvailable ( integer $port ) : boolean

Method Details

__construct() public méthode

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

__destruct() public méthode

public __destruct ( )

compile() public méthode

public compile ( string $file )
$file string

startServer() public méthode

public startServer ( )

stopServer() public méthode

public stopServer ( )

waitServer() public méthode

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