AccessMapInterface.php 864 B

123456789101112131415161718192021222324252627282930313233
  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. * AccessMap allows configuration of different access control rules for
  14. * specific parts of the website.
  15. *
  16. * @author Fabien Potencier <fabien@symfony.com>
  17. * @author Kris Wallsmith <kris@symfony.com>
  18. */
  19. interface AccessMapInterface
  20. {
  21. /**
  22. * Returns security attributes and required channel for the supplied request.
  23. *
  24. * @param Request $request The current request
  25. *
  26. * @return array A tuple of security attributes and the required channel
  27. */
  28. public function getPatterns(Request $request);
  29. }