ServeCommand
Extends
Properties
$name string
The console command name.
$description string
The console command description.
$portOffset int
The current port offset.
$requestsPool
array
The list of requests being handled and their start time.
$serverRunningHasBeenDisplayed bool
Indicates if the "Server running on..." output message has been displayed.
$passthroughVariables string[]
The environment variables that should be passed from host machine to the PHP server process.
Methods
handle ( ) : int
Execute the console command.
startProcess ( $hasEnvironment ) : Symfony\...\Process
Start a new server process.
Parameters
- $hasEnvironment bool
serverCommand ( ) : array
Get the full server command.
host ( ) : string
Get the host for the command.
port ( ) : string
Get the port for the command.
getHostAndPort ( ) : array
Get the host and port from the host option string.
canTryAnotherPort ( ) : bool
Check if the command has reached its maximum number of port tries.
handleProcessOutput ( ) : callable
Returns a "callable" to handle the process output.
getDateFromLine ( $line ) : Carbon
Get the date from the given PHP server output.
Parameters
- $line string
getRequestPortFromLine ( $line ) : int
Get the request port from the given PHP server output.
Parameters
- $line string
getOptions ( ) : array
Get the console command options.