PHP Interface PHPPM\Bridges\BridgeInterface

Show file Open project: php-pm/php-pm

Public Methods

Method Description
bootstrap ( string $appBootstrap, $appenv, boolean $debug ) Bootstrap an application implementing the HttpKernelInterface.
getStaticDirectory ( ) : string Returns the repository which is used as root for the static file serving.
onRequest ( React\Http\Request $request, PHPPM\React\HttpResponse $response ) Handle a request using a HttpKernelInterface implementing application.

Method Details

bootstrap() public method

Bootstrap an application implementing the HttpKernelInterface.
See also: http://stackphp.com
public bootstrap ( string $appBootstrap, $appenv, boolean $debug )
$appBootstrap string The name of the class used to bootstrap the application
$debug boolean If debug is enabled

getStaticDirectory() public method

Returns the repository which is used as root for the static file serving.
public getStaticDirectory ( ) : string
return string

onRequest() public method

Handle a request using a HttpKernelInterface implementing application.
public onRequest ( React\Http\Request $request, PHPPM\React\HttpResponse $response )
$request React\Http\Request
$response PHPPM\React\HttpResponse