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.

35 lines
1.0 KiB

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;
  11. use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
  12. use Symfony\Component\Routing\Matcher\UrlMatcherInterface;
  13. /**
  14. * RouterInterface is the interface that all Router classes must implement.
  15. *
  16. * This interface is the concatenation of UrlMatcherInterface and UrlGeneratorInterface.
  17. *
  18. * @author Fabien Potencier <fabien@symfony.com>
  19. */
  20. interface RouterInterface extends UrlMatcherInterface, UrlGeneratorInterface
  21. {
  22. /**
  23. * Gets the RouteCollection instance associated with this Router.
  24. *
  25. * WARNING: This method should never be used at runtime as it is SLOW.
  26. * You might use it in a cache warmer though.
  27. *
  28. * @return RouteCollection A RouteCollection instance
  29. */
  30. public function getRouteCollection();
  31. }