Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security] adds logout success handler
- Loading branch information
1 parent
bc283f1
commit b685b3a
Showing
6 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/Symfony/Component/Security/Http/Logout/LogoutSuccessHandlerInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Security\Http\Logout; | ||
|
||
use Symfony\Component\HttpFoundation\Request; | ||
use Symfony\Component\EventDispatcher\EventInterface; | ||
|
||
/** | ||
* LogoutSuccesshandlerInterface. | ||
* | ||
* In contrast to the LogoutHandlerInterface, this interface can return a response | ||
* which is then used instead of the default behavior. | ||
* | ||
* If you want to only perform some logout related clean-up task, use the | ||
* LogoutHandlerInterface instead. | ||
* | ||
* @author Johannes M. Schmitt <schmittjoh@gmail.com> | ||
*/ | ||
interface LogoutSuccessHandlerInterface | ||
{ | ||
/** | ||
* Creates a Response object to send upon a successful logout. | ||
* | ||
* @param EventInterface $event | ||
* @param Request $request | ||
* @return Response never null | ||
*/ | ||
function onLogoutSuccess(EventInterface $event, Request $request); | ||
} |