M6Web\Bundle\PhpProcessManagerBundle\Command\HttpProcessCommand::initialize PHP Method

initialize() protected method

{@inheritDoc}
See also: Symfony\Component\Console\Command\Command::initialize()
protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    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');
    }