FirewallMapInterface.php 976 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /*
  3. * This file is part of the Symfony framework.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Symfony\Component\Security\Http;
  11. use Symfony\Component\HttpFoundation\Request;
  12. /**
  13. * This interface must be implemented by firewall maps.
  14. *
  15. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  16. */
  17. interface FirewallMapInterface
  18. {
  19. /**
  20. * Returns the authentication listeners, and the exception listener to use
  21. * for the given request.
  22. *
  23. * If there are no authentication listeners, the first inner are must be
  24. * empty.
  25. *
  26. * If there is no exception listener, the second element of the outer array
  27. * must be null.
  28. *
  29. * @param Request $request
  30. * @return array of the format array(array(AuthenticationListener), ExceptionListener)
  31. */
  32. function getListeners(Request $request);
  33. }