SessionContext
in package
Read onlyYes
FinalYes
Table of Contents
Constants
- AUTHORIZED_GUILDS = 'authorized_guilds'
- POST_AUTHENTICATION_REDIRECT_ROUTE_NAME = 'post_authentication_redirect_route_name'
- POST_AUTHENTICATION_REDIRECT_ROUTE_PARAMS = 'post_authentication_redirect_route_params'
- USER_INFO = 'user_info'
Properties
- $denormalizer : DenormalizerInterface
- $normalizer : NormalizerInterface
- $requestStack : RequestStack
- $router : RouterInterface
Methods
- __construct() : mixed
- getAuthorizedGuilds() : array<string, PartialGuild>
- getPostAuthenticationRedirectResponse() : RedirectResponse
- getUserInfo() : UserInfo
- setAuthorizedGuilds() : void
- setPostAuthenticationRedirectResponse() : void
- setUserInfo() : void
- getSession() : SessionInterface
Constants
AUTHORIZED_GUILDS
private
mixed
AUTHORIZED_GUILDS
= 'authorized_guilds'
POST_AUTHENTICATION_REDIRECT_ROUTE_NAME
private
mixed
POST_AUTHENTICATION_REDIRECT_ROUTE_NAME
= 'post_authentication_redirect_route_name'
POST_AUTHENTICATION_REDIRECT_ROUTE_PARAMS
private
mixed
POST_AUTHENTICATION_REDIRECT_ROUTE_PARAMS
= 'post_authentication_redirect_route_params'
USER_INFO
private
mixed
USER_INFO
= 'user_info'
Properties
$denormalizer
private
DenormalizerInterface
$denormalizer
$normalizer
private
NormalizerInterface
$normalizer
$requestStack
private
RequestStack
$requestStack
$router
private
RouterInterface
$router
Methods
__construct()
public
__construct(RequestStack $requestStack, RouterInterface $router, NormalizerInterface $normalizer, DenormalizerInterface $denormalizer) : mixed
Parameters
- $requestStack : RequestStack
- $router : RouterInterface
- $normalizer : NormalizerInterface
- $denormalizer : DenormalizerInterface
getAuthorizedGuilds()
public
getAuthorizedGuilds() : array<string, PartialGuild>
Return values
array<string, PartialGuild>getPostAuthenticationRedirectResponse()
public
getPostAuthenticationRedirectResponse() : RedirectResponse
Return values
RedirectResponsegetUserInfo()
public
getUserInfo() : UserInfo
Return values
UserInfosetAuthorizedGuilds()
public
setAuthorizedGuilds(array<string, PartialGuild> $authorizedGuilds) : void
Parameters
- $authorizedGuilds : array<string, PartialGuild>
setPostAuthenticationRedirectResponse()
public
setPostAuthenticationRedirectResponse(string $routeName, array<string|int, mixed> $routeParams) : void
Parameters
- $routeName : string
- $routeParams : array<string|int, mixed>
setUserInfo()
public
setUserInfo(DiscordResourceOwner $discordResourceOwner) : void
Parameters
- $discordResourceOwner : DiscordResourceOwner
getSession()
private
getSession() : SessionInterface