FileAccess Orion

SessionHelper extends Helper
in package

SessionHelper provides read-only access to the session attributes.

Tags
author

Fabien Potencier fabien@symfony.com

deprecated

since version 4.3, to be removed in 5.0; use Twig instead.

Table of Contents

$requestStack  : mixed
$session  : mixed
__construct()  : mixed
get()  : mixed
Returns an attribute.
getFlash()  : mixed
getFlashes()  : mixed
getName()  : mixed
{@inheritdoc}
hasFlash()  : mixed
getSession()  : SessionInterface

Properties

Methods

get()

Returns an attribute.

public get(string $name[, mixed $default = null ]) : mixed
Parameters
$name : string

The attribute name

$default : mixed = null

The default value

Return values
mixed

getFlash()

public getFlash(mixed $name[, array<string|int, mixed> $default = [] ]) : mixed
Parameters
$name : mixed
$default : array<string|int, mixed> = []
Return values
mixed

getFlashes()

public getFlashes() : mixed
Return values
mixed

getName()

{@inheritdoc}

public getName() : mixed
Return values
mixed

hasFlash()

public hasFlash(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

Search results