Overview

Namespaces

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

Classes

  • ApplicationFactory
  • CallbackWrapper
  • Daemon
  • DaemonFactory

Interfaces

  • ApplicationFactoryInterface
  • DaemonFactoryInterface
  • DaemonInterface
  • KernelInterface
  • Overview
  • Namespace
  • Class

Class CallbackWrapper

Wraps a callback (such as a closure, function or class and method pair) as an implementation of the kernel interface.

PHPFastCGI\FastCGIDaemon\CallbackWrapper implements PHPFastCGI\FastCGIDaemon\KernelInterface
Namespace: PHPFastCGI\FastCGIDaemon
Located at CallbackWrapper.php
Methods summary
public
# __construct( callable $handler )

Constructor.

Constructor.

Parameters

$handler
The handler callback to wrap

Throws

InvalidArgumentException
When not given callable callback
public ResponseInterface|HttpFoundationResponse
# handleRequest( PHPFastCGI\FastCGIDaemon\Http\RequestInterface $request )

Handles a request and returns a response.

Handles a request and returns a response.

Parameters

$request
FastCGI HTTP request object

Returns

ResponseInterface|HttpFoundationResponse
HTTP response message

Implementation of

PHPFastCGI\FastCGIDaemon\KernelInterface::handleRequest()
API documentation generated by ApiGen