PHP Class Phprest\Middleware\ApiVersion

Inheritance: implements Symfony\Component\HttpKernel\HttpKernelInterface, use trait Phprest\Util\Mime
Mostra file Open project: phprest/phprest Class Usage Examples

Protected Properties

Property Type Description
$app Phprest\Application

Public Methods

Method Description
__construct ( Application $app )
handle ( Request $request, integer $type = self::MASTER_REQUEST, boolean $catch = true ) : Response

Protected Methods

Method Description
getContainer ( ) : League\Container\ContainerInterface Returns the DI container.

Method Details

__construct() public method

public __construct ( Application $app )
$app Phprest\Application

getContainer() protected method

Returns the DI container.
protected getContainer ( ) : League\Container\ContainerInterface
return League\Container\ContainerInterface

handle() public method

public handle ( Request $request, integer $type = self::MASTER_REQUEST, boolean $catch = true ) : Response
$request Symfony\Component\HttpFoundation\Request
$type integer
$catch boolean
return Symfony\Component\HttpFoundation\Response

Property Details

$app protected_oe property

protected Application,Phprest $app
return Phprest\Application