W3cubDocs

/Symfony 4.1

DefaultLogoutSuccessHandler

class DefaultLogoutSuccessHandler implements LogoutSuccessHandlerInterface

Default logout success handler will redirect users to a configured path.

Properties

protected $httpUtils
protected $targetUrl

Methods

__construct(HttpUtils $httpUtils, string $targetUrl = '/')
Response onLogoutSuccess(Request $request)

Creates a Response object to send upon a successful logout.

Details

__construct(HttpUtils $httpUtils, string $targetUrl = '/')

Parameters

HttpUtils $httpUtils
string $targetUrl

Response onLogoutSuccess(Request $request)

Creates a Response object to send upon a successful logout.

Parameters

Request $request

Return Value

Response never null