public function createDaemon(KernelInterface $kernel, DaemonOptions $options, int $fd = DaemonInterface::FCGI_LISTENSOCK_FILENO): DaemonInterface
    {
        $socket = fopen('php://fd/'.$fd, 'r');

        if (false === $socket) {
            throw new \RuntimeException('Could not open ' . $fd);
        }

        return $this->createDaemonFromStreamSocket($kernel, $options, $socket);
    }
public function createDaemon(KernelInterface $kernel, DaemonOptions $options, int $fd = DaemonInterface::FCGI_LISTENSOCK_FILENO): DaemonInterface
    {
        $socket = fopen('php://fd/'.$fd, 'r');

        if (false === $socket) {
            throw new \RuntimeException('Could not open ' . $fd);
        }

        return $this->createDaemonFromStreamSocket($kernel, $options, $socket);
    }
public function createDaemon ( KernelInterface $ kernel , DaemonOptions $ options , int $ fd = DaemonInterface :: FCGI_LISTENSOCK_FILENO ) : DaemonInterface { $ socket = fopen ( 'php://fd/' . $ fd , 'r' ) ; if ( false === $ socket ) { throw new \ RuntimeException ( 'Could not open ' . $ fd ) ; } return $ this -> createDaemonFromStreamSocket ( $ kernel , $ options , $ socket ) ; }
Create a FastCGI daemon listening on file descriptor using the
userland FastCGI implementation.

@param KernelInterface $kernel  The kernel to use for the daemon
@param DaemonOptions   $options The daemon configuration
@param int $fd file descriptor for listening defaults to FCGI_LISTENSOCK_FILENO

@return UserlandDaemon

@codeCoverageIgnore The FastCGI daemon
Create a FastCGI daemon listening on file descriptor using the userland FastCGI implementation .