SocialLoginGateSubscriber
in package
implements
EventSubscriberInterface
Answers 404 on the Google/Facebook OAuth routes while SOCIAL_LOGIN_ENABLED is off. Runs after the router (route known) and before the firewall, so the OAuth authenticators never get a chance to start.
Table of Contents
Interfaces
- EventSubscriberInterface
Constants
- SOCIAL_ROUTES : mixed = ['connect_google_start', 'connect_google_check'...
Properties
- $socialLoginEnabled : bool
Methods
- __construct() : mixed
- getSubscribedEvents() : array<string|int, mixed>
- onKernelRequest() : void
Constants
SOCIAL_ROUTES
private
mixed
SOCIAL_ROUTES
= ['connect_google_start', 'connect_google_check', 'connect_facebook_start', 'connect_facebook_check']
Properties
$socialLoginEnabled read-only
private
bool
$socialLoginEnabled
Methods
__construct()
public
__construct(bool $socialLoginEnabled) : mixed
Parameters
- $socialLoginEnabled : bool
getSubscribedEvents()
public
static getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>onKernelRequest()
public
onKernelRequest(RequestEvent $event) : void
Parameters
- $event : RequestEvent