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