class SymfonySessionDecorator implements SessionInterface

Methods

__construct(Session $store)

Create a new session decorator.

bool
start()

No description

string
getId()

No description

void
setId(string $id)

No description

string
getName()

No description

void
setName(string $name)

Set the session name.

bool
invalidate(int|null $lifetime = null)

No description

bool
migrate(bool $destroy = false, int|null $lifetime = null)

No description

void
save()

No description

bool
has(string $name)

No description

mixed
get(string $name, mixed $default = null)

No description

void
set(string $name, mixed $value)

No description

array
all()

No description

void
replace(array $attributes)

No description

mixed
remove(string $name)

No description

void
clear()

No description

bool
isStarted()

No description

void
registerBag(SessionBagInterface $bag)

No description

SessionBagInterface
getBag(string $name)

No description

MetadataBag
getMetadataBag()

No description

Details

at line 18
__construct(Session $store)

Create a new session decorator.

Parameters

Session $store

at line 23
bool start()

No description

Return Value

bool

at line 28
string getId()

No description

Return Value

string

at line 33
void setId(string $id)

No description

Parameters

string $id

Return Value

void

at line 38
string getName()

No description

Return Value

string

at line 49
void setName(string $name)

Set the session name.

Boot-only. Delegates to the shared session store name; per-request use races across coroutines and changes the cookie name for concurrent requests.

Parameters

string $name

Return Value

void

at line 54
bool invalidate(int|null $lifetime = null)

No description

Parameters

int|null $lifetime

Return Value

bool

at line 61
bool migrate(bool $destroy = false, int|null $lifetime = null)

No description

Parameters

bool $destroy
int|null $lifetime

Return Value

bool

at line 68
void save()

No description

Return Value

void

at line 73
bool has(string $name)

No description

Parameters

string $name

Return Value

bool

at line 78
mixed get(string $name, mixed $default = null)

No description

Parameters

string $name
mixed $default

Return Value

mixed

at line 83
void set(string $name, mixed $value)

No description

Parameters

string $name
mixed $value

Return Value

void

at line 88
array all()

No description

Return Value

array

at line 93
void replace(array $attributes)

No description

Parameters

array $attributes

Return Value

void

at line 98
mixed remove(string $name)

No description

Parameters

string $name

Return Value

mixed

at line 103
void clear()

No description

Return Value

void

at line 108
bool isStarted()

No description

Return Value

bool

at line 116
void registerBag(SessionBagInterface $bag)

No description

Parameters

SessionBagInterface $bag

Return Value

void

Exceptions

BadMethodCallException

at line 124
SessionBagInterface getBag(string $name)

No description

Parameters

string $name

Return Value

SessionBagInterface

Exceptions

BadMethodCallException

at line 132
MetadataBag getMetadataBag()

No description

Return Value

MetadataBag

Exceptions

BadMethodCallException