FirewallMapInterface.php 1004 B

1234567891011121314151617181920212223242526272829303132333435363738
  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;
  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. *
  31. * @return array of the format array(array(AuthenticationListener), ExceptionListener)
  32. */
  33. public function getListeners(Request $request);
  34. }