Overview

Namespaces

  • PHPFastCGI
    • FastCGIDaemon
      • Command
      • Connection
      • ConnectionHandler
      • Exception
      • Http

Classes

  • PHPFastCGI\FastCGIDaemon\ApplicationFactory
  • PHPFastCGI\FastCGIDaemon\CallbackWrapper
  • PHPFastCGI\FastCGIDaemon\Command\DaemonRunCommand
  • PHPFastCGI\FastCGIDaemon\Connection\StreamSocketConnection
  • PHPFastCGI\FastCGIDaemon\Connection\StreamSocketConnectionPool
  • PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandler
  • PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerFactory
  • PHPFastCGI\FastCGIDaemon\Daemon
  • PHPFastCGI\FastCGIDaemon\DaemonFactory
  • PHPFastCGI\FastCGIDaemon\Http\Request

Interfaces

  • PHPFastCGI\FastCGIDaemon\ApplicationFactoryInterface
  • PHPFastCGI\FastCGIDaemon\Connection\ConnectionInterface
  • PHPFastCGI\FastCGIDaemon\Connection\ConnectionPoolInterface
  • PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerFactoryInterface
  • PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerInterface
  • PHPFastCGI\FastCGIDaemon\DaemonFactoryInterface
  • PHPFastCGI\FastCGIDaemon\DaemonInterface
  • PHPFastCGI\FastCGIDaemon\Http\RequestInterface
  • PHPFastCGI\FastCGIDaemon\KernelInterface

Exceptions

  • PHPFastCGI\FastCGIDaemon\Exception\ConnectionException
  • PHPFastCGI\FastCGIDaemon\Exception\DaemonException
  • PHPFastCGI\FastCGIDaemon\Exception\ProtocolException
  • PHPFastCGI\FastCGIDaemon\Exception\ShutdownException
  • Overview
  • Namespace
  • Class
 1: <?php
 2: 
 3: namespace PHPFastCGI\FastCGIDaemon;
 4: 
 5: use PHPFastCGI\FastCGIDaemon\Command\DaemonRunCommand;
 6: use Symfony\Component\Console\Application;
 7: /**
 8:  * The default implementation of the ApplicationFactoryInterface.
 9:  */
10: class ApplicationFactory implements ApplicationFactoryInterface
11: {
12:     /**
13:      * @var DaemonFactoryInterface
14:      */
15:     private $daemonFactory;
16: 
17:     /**
18:      * Constructor.
19:      * 
20:      * @param DaemonFactoryInterface $daemonFactory The factory to use to create daemons
21:      */
22:     public function __construct(DaemonFactoryInterface $daemonFactory = null)
23:     {
24:         $this->daemonFactory = $daemonFactory;
25:     }
26: 
27:     /**
28:      * {@inheritdoc}
29:      */
30:     public function createApplication($kernel, $commandName = null, $commandDescription = null)
31:     {
32:         $command = $this->createCommand($kernel, $commandName, $commandDescription);
33: 
34:         $application = new Application;
35:         $application->add($command);
36: 
37:         return $application;
38:     }
39: 
40:     /**
41:      * {@inheritdoc}
42:      */
43:     public function createCommand($kernel, $commandName = null, $commandDescription = null)
44:     {
45:         return new DaemonRunCommand($kernel, $this->daemonFactory, $commandName, $commandDescription);
46:     }
47: }
48: 
API documentation generated by ApiGen