protected function initialize(InputInterface $input, OutputInterface $output)
{
$this->port = (int) $input->getArgument('port');
if (!is_integer($this->port) || $this->port < 1 || $this->port > 65535) {
throw new \InvalidArgumentException("Invalid argument port " . $this->port);
}
$this->memoryMax = $input->getOption('memory-max') * 1024 * 1024;
$this->host = $input->getOption('host');
$container = $this->getContainer();
$this->loop = $container->get('m6_web_php_pm.react.loop');
$this->socket = $container->get('m6_web_php_pm.react.socket');
$this->httpServer = $container->get('m6_web_php_pm.react.http_server');
}