mediatekformation

TargetPathTrait

Trait to get (and set) the URL the user last visited before being forced to authenticate.

Table of Contents

getTargetPath()  : string|null
Returns the URL (if any) the user visited that forced them to login.
removeTargetPath()  : mixed
Removes the target path from the session.
saveTargetPath()  : mixed
Sets the target path the user should be redirected to after authentication.

Methods

getTargetPath()

Returns the URL (if any) the user visited that forced them to login.

private getTargetPath(SessionInterface $session, string $providerKey) : string|null
Parameters
$session : SessionInterface
$providerKey : string
Return values
string|null

removeTargetPath()

Removes the target path from the session.

private removeTargetPath(SessionInterface $session, string $providerKey) : mixed
Parameters
$session : SessionInterface
$providerKey : string
Return values
mixed

saveTargetPath()

Sets the target path the user should be redirected to after authentication.

private saveTargetPath(SessionInterface $session, string $providerKey, string $uri) : mixed

Usually, you do not need to set this directly.

Parameters
$session : SessionInterface
$providerKey : string
$uri : string
Return values
mixed

Search results