PHP Trait Acacha\Llum\Traits\Serve

Mostra file Open project: acacha/llum

Public Methods

Method Description
configure ( ) Configure command.

Protected Methods

Method Description
check_port ( integer $port = 8000, string $host = '127.0.0.1', integer $timeout = 3 ) : boolean Check if port is in use.
port ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string Obtain port.
serve ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Serve command.

Method Details

check_port() protected method

Check if port is in use.
protected check_port ( integer $port = 8000, string $host = '127.0.0.1', integer $timeout = 3 ) : boolean
$port integer
$host string
$timeout integer
return boolean

configure() public method

Configure command.
public configure ( )

port() protected method

Obtain port.
protected port ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string
$input Symfony\Component\Console\Input\InputInterface
return mixed | string

serve() protected method

Serve command.
protected serve ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface