You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
927 B

3 years ago
  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\Routing\Matcher\Dumper;
  11. use Symfony\Component\Routing\RouteCollection;
  12. /**
  13. * MatcherDumperInterface is the interface that all matcher dumper classes must implement.
  14. *
  15. * @author Fabien Potencier <fabien@symfony.com>
  16. */
  17. interface MatcherDumperInterface
  18. {
  19. /**
  20. * Dumps a set of routes to a string representation of executable code
  21. * that can then be used to match a request against these routes.
  22. *
  23. * @return string Executable code
  24. */
  25. public function dump(array $options = []);
  26. /**
  27. * Gets the routes to dump.
  28. *
  29. * @return RouteCollection A RouteCollection instance
  30. */
  31. public function getRoutes();
  32. }