RouterInterface.php 901 B

1234567891011121314151617181920212223242526272829303132
  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. * @return RouteCollection A RouteCollection instance
  26. */
  27. public function getRouteCollection();
  28. }