PHP Trait Acacha\Llum\Traits\Serve

Afficher le fichier Open project: acacha/llum

Méthodes publiques

Méthode Description
configure ( ) Configure command.

Méthodes protégées

Méthode 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 méthode

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
Résultat boolean

configure() public méthode

Configure command.
public configure ( )

port() protected méthode

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

serve() protected méthode

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