public function createDaemonFromStreamSocket(KernelInterface $kernel, DaemonOptions $options, $socket): DaemonInterface
    {
        $connectionPool           = new StreamSocketConnectionPool($socket);
        $connectionHandlerFactory = new ConnectionHandlerFactory();

        return new UserlandDaemon($kernel, $options, $connectionPool, $connectionHandlerFactory);
    }
public function createDaemonFromStreamSocket(KernelInterface $kernel, DaemonOptions $options, $socket): DaemonInterface
    {
        $connectionPool           = new StreamSocketConnectionPool($socket);
        $connectionHandlerFactory = new ConnectionHandlerFactory();

        return new UserlandDaemon($kernel, $options, $connectionPool, $connectionHandlerFactory);
    }
public function createDaemonFromStreamSocket ( KernelInterface $ kernel , DaemonOptions $ options , $ socket ) : DaemonInterface { $ connectionPool = new StreamSocketConnectionPool ( $ socket ) ; $ connectionHandlerFactory = new ConnectionHandlerFactory ( ) ; return new UserlandDaemon ( $ kernel , $ options , $ connectionPool , $ connectionHandlerFactory ) ; }
Create a FastCGI daemon from a stream socket which is configured for
accepting connections using the userland FastCGI implementation.

@param KernelInterface $kernel  The kernel to use for the daemon
@param DaemonOptions   $options The daemon configuration
@param resource        $socket  The socket to accept connections from

@return UserlandDaemon The FastCGI daemon
Create a FastCGI daemon from a stream socket which is configured for accepting connections using the userland FastCGI implementation .