SessionAuthenticationStrategyInterface.php 1021 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Security\Http\Session;
  11. use Symfony\Component\HttpFoundation\Request;
  12. use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
  13. /**
  14. * SessionAuthenticationStrategyInterface.
  15. *
  16. * Implementation are responsible for updating the session after an interactive
  17. * authentication attempt was successful.
  18. *
  19. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  20. */
  21. interface SessionAuthenticationStrategyInterface
  22. {
  23. /**
  24. * This performs any necessary changes to the session.
  25. *
  26. * This method should be called before the TokenStorage is populated with a
  27. * Token. It should be used by authentication listeners when a session is used.
  28. */
  29. public function onAuthentication(Request $request, TokenInterface $token);
  30. }