Skip to content

Commit 4008a7e

Browse files
committed
Adding DaemonFactoryInterface::createDaemonFromStreamSocket
1 parent b4f36a8 commit 4008a7e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/DaemonFactoryInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,16 @@ public function createDaemon(KernelInterface $kernel, DaemonOptions $options, in
3434
* @return DaemonInterface The FastCGI daemon
3535
*/
3636
public function createTcpDaemon(KernelInterface $kernel, DaemonOptions $options, string $host, int $port): DaemonInterface;
37+
38+
/**
39+
* Create a FastCGI daemon from a stream socket which is configured for
40+
* accepting connections using the userland FastCGI implementation.
41+
*
42+
* @param KernelInterface $kernel The kernel to use for the daemon
43+
* @param DaemonOptions $options The daemon configuration
44+
* @param resource $socket The socket to accept connections from
45+
*
46+
* @return DaemonInterface The FastCGI daemon
47+
*/
48+
public function createDaemonFromStreamSocket(KernelInterface $kernel, DaemonOptions $options, int $socket): DaemonInterface;
3749
}

0 commit comments

Comments
 (0)