설명 없음

RouterInterface.php 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  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. }