class LogoutController extends ControllerBase

Custom logout controller for o365_sso module.

Properties

protected AccountInterface $account

The current user.

protected ImmutableConfig $config

The module config.

protected GraphService $graphService

The o365 Graph service.

Methods

__construct(ConfigFactoryInterface $configFactory, GraphService $o365Graph, AccountInterface $account)

The controller constructor.

create(ContainerInterface $container)

{@inheritdoc}

logout()

Logout a user and redirect to office if needed.

Details

at line 42
__construct(ConfigFactoryInterface $configFactory, GraphService $o365Graph, AccountInterface $account)

The controller constructor.

Parameters

ConfigFactoryInterface $configFactory
GraphService $o365Graph
AccountInterface $account

at line 51
static LogoutController create(ContainerInterface $container)

{@inheritdoc}

Parameters

ContainerInterface $container

Return Value

LogoutController

at line 63
logout()

Logout a user and redirect to office if needed.