PHP Class Drahak\Restful\Application\Events\MethodHandler

Author: Drahomír Hanák
Inheritance: extends Nette\Object
Datei anzeigen Open project: drahak/restful

Public Methods

Method Description
__construct ( Nette\Http\IRequest $request, Nette\Http\IResponse $response, Drahak\Restful\Application\MethodOptions $methods )
error ( Application $application, Exception | Throwable $e ) On application error
run ( Application $application ) On application run

Protected Methods

Method Description
checkAllowedMethods ( ) Check allowed methods

Method Details

__construct() public method

public __construct ( Nette\Http\IRequest $request, Nette\Http\IResponse $response, Drahak\Restful\Application\MethodOptions $methods )
$request Nette\Http\IRequest
$response Nette\Http\IResponse
$methods Drahak\Restful\Application\MethodOptions

checkAllowedMethods() protected method

Check allowed methods
protected checkAllowedMethods ( )

error() public method

On application error
public error ( Application $application, Exception | Throwable $e )
$application Nette\Application\Application
$e Exception | Throwable

run() public method

On application run
public run ( Application $application )
$application Nette\Application\Application