RequestMatcherInterface.php 791 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Symfony\Component\HttpFoundation;
  3. /*
  4. * This file is part of the Symfony package.
  5. *
  6. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. /**
  12. * RequestMatcherInterface is an interface for strategies to match a Request.
  13. *
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. */
  16. interface RequestMatcherInterface
  17. {
  18. /**
  19. * Decides whether the rule(s) implemented by the strategy matches the supplied request.
  20. *
  21. * @param Request $request The request to check for a match
  22. *
  23. * @return Boolean true if the request matches, false otherwise
  24. */
  25. function matches(Request $request);
  26. }