MatcherDumperInterface.php 940 B

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