class SymfonySessionDecorator implements SessionInterface (View source)

Properties

protected Store $store

The underlying Laravel session store.

Methods

void
__construct(Session $store)

Create a new session decorator.

bool
start()

{@inheritdoc}

string
getId()

{@inheritdoc}

setId(string $id)

{@inheritdoc}

string
getName()

{@inheritdoc}

setName(string $name)

{@inheritdoc}

bool
invalidate(int $lifetime = null)

{@inheritdoc}

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

{@inheritdoc}

save()

{@inheritdoc}

bool
has(string $name)

{@inheritdoc}

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

{@inheritdoc}

set(string $name, mixed $value)

{@inheritdoc}

array
all()

{@inheritdoc}

replace(array $attributes)

{@inheritdoc}

mixed
remove(string $name)

{@inheritdoc}

clear()

{@inheritdoc}

bool
isStarted()

{@inheritdoc}

registerBag(SessionBagInterface $bag)

{@inheritdoc}

SessionBagInterface
getBag(string $name)

{@inheritdoc}

MetadataBag
getMetadataBag()

{@inheritdoc}

Details

void __construct(Session $store)

Create a new session decorator.

Parameters

Session $store

Return Value

void

bool start()

{@inheritdoc}

Return Value

bool

string getId()

{@inheritdoc}

Return Value

string

setId(string $id)

{@inheritdoc}

Parameters

string $id

string getName()

{@inheritdoc}

Return Value

string

setName(string $name)

{@inheritdoc}

Parameters

string $name

bool invalidate(int $lifetime = null)

{@inheritdoc}

Parameters

int $lifetime

Return Value

bool

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

{@inheritdoc}

Parameters

bool $destroy
int $lifetime

Return Value

bool

save()

{@inheritdoc}

bool has(string $name)

{@inheritdoc}

Parameters

string $name

Return Value

bool

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

{@inheritdoc}

Parameters

string $name
mixed $default

Return Value

mixed

set(string $name, mixed $value)

{@inheritdoc}

Parameters

string $name
mixed $value

array all()

{@inheritdoc}

Return Value

array

replace(array $attributes)

{@inheritdoc}

Parameters

array $attributes

mixed remove(string $name)

{@inheritdoc}

Parameters

string $name

Return Value

mixed

clear()

{@inheritdoc}

bool isStarted()

{@inheritdoc}

Return Value

bool

registerBag(SessionBagInterface $bag)

{@inheritdoc}

Parameters

SessionBagInterface $bag

SessionBagInterface getBag(string $name)

{@inheritdoc}

Parameters

string $name

Return Value

SessionBagInterface

MetadataBag getMetadataBag()

{@inheritdoc}

Return Value

MetadataBag