class HttpsInterceptor implements InterceptorInterface (View source)

This security interceptor switches the current channel between HTTP and HTTPS protocol.

Properties

protected bool $useSSL

Methods

__construct(Context $securityContext, AuthenticationManagerInterface $authenticationManager)

Constructor.

bool
invoke()

Redirects the current request to HTTP or HTTPS depending on $this->useSSL;

Details

__construct(Context $securityContext, AuthenticationManagerInterface $authenticationManager)

Constructor.

Parameters

Context $securityContext

The current security context

AuthenticationManagerInterface $authenticationManager

The authentication Manager

bool invoke()

Redirects the current request to HTTP or HTTPS depending on $this->useSSL;

Return Value

bool

true if the security checks was passed