FirewallMapInterface.php 968 B

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