Documentation

RequestStackContext
in package
implements ContextInterface

Uses a RequestStack to populate the context.

Tags
author

Fabien Potencier fabien@symfony.com

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

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
string

isSecure()

Checks whether the request is secure or not.

public isSecure() : bool
Return values
bool

        
On this page

Search results