AccessMapInterface.php 806 B

12345678910111213141516171819202122232425262728293031
  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. * @return array A tuple of security attributes and the required channel
  25. */
  26. public function getPatterns(Request $request);
  27. }