class ServerStartCommand extends Command

Extends Symfony Command directly — NOT Hypervel\Console\Command — because the Swoole server must own the event loop. Hypervel\Console\Command brings coroutine wrapping and signal traits that start the event loop before Server::start().

Methods

__construct(Application $application)

No description

int
execute(InputInterface $input, OutputInterface $output)

Execute the server start command.

void
configure()

Configure the server start command.

int
startServer(InputInterface $input)

Start the configured Swoole servers.

Details

at line 32
__construct(Application $application)

No description

Parameters

Application $application

at line 41
protected int execute(InputInterface $input, OutputInterface $output)

Execute the server start command.

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

at line 50
protected void configure()

Configure the server start command.

Return Value

void

at line 61
protected int startServer(InputInterface $input)

Start the configured Swoole servers.

Parameters

InputInterface $input

Return Value

int