@@ -40,20 +40,20 @@ discard block |
||
| 40 | 40 | $this->kernel = $kernel; |
| 41 | 41 | $this->driverContainer = $driverContainer; |
| 42 | 42 | |
| 43 | - $name = $name ?: self::DEFAULT_NAME; |
|
| 43 | + $name = $name ?: self::DEFAULT_NAME; |
|
| 44 | 44 | $description = $description ?: self::DEFAULT_DESCRIPTION; |
| 45 | 45 | |
| 46 | 46 | parent::__construct($name); |
| 47 | 47 | |
| 48 | 48 | $this |
| 49 | 49 | ->setDescription($description) |
| 50 | - ->addOption('port', null, InputOption::VALUE_OPTIONAL, 'TCP port to listen on (if not present, daemon will listen on FCGI_LISTENSOCK_FILENO)') |
|
| 51 | - ->addOption('host', null, InputOption::VALUE_OPTIONAL, 'TCP host to listen on') |
|
| 52 | - ->addOption('fd', null, InputOption::VALUE_OPTIONAL, 'File descriptor to listen on - defaults to FCGI_LISTENSOCK_FILENO', DaemonInterface::FCGI_LISTENSOCK_FILENO) |
|
| 50 | + ->addOption('port', null, InputOption::VALUE_OPTIONAL, 'TCP port to listen on (if not present, daemon will listen on FCGI_LISTENSOCK_FILENO)') |
|
| 51 | + ->addOption('host', null, InputOption::VALUE_OPTIONAL, 'TCP host to listen on') |
|
| 52 | + ->addOption('fd', null, InputOption::VALUE_OPTIONAL, 'File descriptor to listen on - defaults to FCGI_LISTENSOCK_FILENO', DaemonInterface::FCGI_LISTENSOCK_FILENO) |
|
| 53 | 53 | ->addOption('request-limit', null, InputOption::VALUE_OPTIONAL, 'The maximum number of requests to handle before shutting down') |
| 54 | - ->addOption('memory-limit', null, InputOption::VALUE_OPTIONAL, 'The memory limit on the daemon instance before shutting down') |
|
| 55 | - ->addOption('time-limit', null, InputOption::VALUE_OPTIONAL, 'The time limit on the daemon in seconds before shutting down') |
|
| 56 | - ->addOption('driver', null, InputOption::VALUE_OPTIONAL, 'The implementation of the FastCGI protocol to use', 'userland'); |
|
| 54 | + ->addOption('memory-limit', null, InputOption::VALUE_OPTIONAL, 'The memory limit on the daemon instance before shutting down') |
|
| 55 | + ->addOption('time-limit', null, InputOption::VALUE_OPTIONAL, 'The time limit on the daemon in seconds before shutting down') |
|
| 56 | + ->addOption('driver', null, InputOption::VALUE_OPTIONAL, 'The implementation of the FastCGI protocol to use', 'userland'); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -70,8 +70,8 @@ discard block |
||
| 70 | 70 | $logger = new ConsoleLogger($output); |
| 71 | 71 | |
| 72 | 72 | $requestLimit = $input->getOption('request-limit') ?: DaemonOptions::NO_LIMIT; |
| 73 | - $memoryLimit = $input->getOption('memory-limit') ?: DaemonOptions::NO_LIMIT; |
|
| 74 | - $timeLimit = $input->getOption('time-limit') ?: DaemonOptions::NO_LIMIT; |
|
| 73 | + $memoryLimit = $input->getOption('memory-limit') ?: DaemonOptions::NO_LIMIT; |
|
| 74 | + $timeLimit = $input->getOption('time-limit') ?: DaemonOptions::NO_LIMIT; |
|
| 75 | 75 | |
| 76 | 76 | return new DaemonOptions([ |
| 77 | 77 | DaemonOptions::LOGGER => $logger, |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $socket = fopen('php://fd/'.$fd, 'r'); |
| 32 | 32 | |
| 33 | 33 | if (false === $socket) { |
| 34 | - throw new \RuntimeException('Could not open ' . $fd); |
|
| 34 | + throw new \RuntimeException('Could not open '.$fd); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | return $this->createDaemonFromStreamSocket($kernel, $options, $socket); |