Skip to content

Commit 935a7ba

Browse files
committed
Adding DaemonFactoryInterface::createDaemonFromStreamSocket
1 parent a03831b commit 935a7ba

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
@@ -32,4 +32,16 @@ public function createDaemon(KernelInterface $kernel, DaemonOptions $options, $f
3232
* @return DaemonInterface The FastCGI daemon
3333
*/
3434
public function createTcpDaemon(KernelInterface $kernel, DaemonOptions $options, $host, $port);
35+
36+
/**
37+
* Create a FastCGI daemon from a stream socket which is configured for
38+
* accepting connections using the userland FastCGI implementation.
39+
*
40+
* @param KernelInterface $kernel The kernel to use for the daemon
41+
* @param DaemonOptions $options The daemon configuration
42+
* @param resource $socket The socket to accept connections from
43+
*
44+
* @return DaemonInterface The FastCGI daemon
45+
*/
46+
public function createDaemonFromStreamSocket(KernelInterface $kernel, DaemonOptions $options, int $socket): DaemonInterface;
3547
}

0 commit comments

Comments
 (0)