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}

void
setId(string $id)

{@inheritdoc}

string
getName()

{@inheritdoc}

void
setName(string $name)

{@inheritdoc}

bool
invalidate(int|null $lifetime = null)

{@inheritdoc}

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

{@inheritdoc}

void
save()

{@inheritdoc}

bool
has(string $name)

{@inheritdoc}

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

{@inheritdoc}

void
set(string $name, mixed $value)

{@inheritdoc}

array
all()

{@inheritdoc}

void
replace(array $attributes)

{@inheritdoc}

mixed
remove(string $name)

{@inheritdoc}

void
clear()

{@inheritdoc}

bool
isStarted()

{@inheritdoc}

void
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

void setId(string $id)

{@inheritdoc}

Parameters

string $id

Return Value

void

string getName()

{@inheritdoc}

Return Value

string

void setName(string $name)

{@inheritdoc}

Parameters

string $name

Return Value

void

bool invalidate(int|null $lifetime = null)

{@inheritdoc}

Parameters

int|null $lifetime

Return Value

bool

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

{@inheritdoc}

Parameters

bool $destroy
int|null $lifetime

Return Value

bool

void save()

{@inheritdoc}

Return Value

void

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

void set(string $name, mixed $value)

{@inheritdoc}

Parameters

string $name
mixed $value

Return Value

void

array all()

{@inheritdoc}

Return Value

array

void replace(array $attributes)

{@inheritdoc}

Parameters

array $attributes

Return Value

void

mixed remove(string $name)

{@inheritdoc}

Parameters

string $name

Return Value

mixed

void clear()

{@inheritdoc}

Return Value

void

bool isStarted()

{@inheritdoc}

Return Value

bool

void registerBag(SessionBagInterface $bag)

{@inheritdoc}

Parameters

SessionBagInterface $bag

Return Value

void

SessionBagInterface getBag(string $name)

{@inheritdoc}

Parameters

string $name

Return Value

SessionBagInterface

MetadataBag getMetadataBag()

{@inheritdoc}

Return Value

MetadataBag