1: <?php
2:
3: namespace PHPFastCGI\FastCGIDaemon\ConnectionHandler;
4:
5: use PHPFastCGI\FastCGIDaemon\Connection\ConnectionInterface;
6:
7: /**
8: * Objects implementing the ConnectionHandlerFactoryInterface can be used by
9: * the ConnectionPool to create handlers for new incoming connections.
10: */
11: interface ConnectionHandlerFactoryInterface
12: {
13: /**
14: * Create a connection handler.
15: *
16: * @param ConnectionInterface $connection The connection to handle
17: *
18: * @return ConnectionHandlerInterface The connection handler
19: */
20: public function createConnectionHandler(ConnectionInterface $connection);
21: }
22: