ServerStartCommand
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
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.
array
getHostAndPort(string $host)
Get the host and optional port from the host option.
Details
at line 35
__construct(Application $application)
No description
at line 44
protected int
execute(InputInterface $input, OutputInterface $output)
Execute the server start command.
at line 53
protected void
configure()
Configure the server start command.
at line 64
protected int
startServer(InputInterface $input)
Start the configured Swoole servers.
at line 156
protected array
getHostAndPort(string $host)
Get the host and optional port from the host option.