RequestStackContext
in package
implements
ContextInterface
Uses a RequestStack to populate the context.
Tags
Table of Contents
Interfaces
- ContextInterface
- Holds information about the current request.
Properties
- $basePath : string
- $requestStack : mixed
- $secure : bool
Methods
- __construct() : mixed
- getBasePath() : string
- Gets the base path.
- isSecure() : bool
- Checks whether the request is secure or not.
Properties
$basePath
private
string
$basePath
$requestStack
private
mixed
$requestStack
$secure
private
bool
$secure
Methods
__construct()
public
__construct(RequestStack $requestStack[, string $basePath = '' ][, bool $secure = false ]) : mixed
Parameters
- $requestStack : RequestStack
- $basePath : string = ''
- $secure : bool = false
getBasePath()
Gets the base path.
public
getBasePath() : string
Return values
stringisSecure()
Checks whether the request is secure or not.
public
isSecure() : bool