RouteReferrersReadInterface.php 693 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of the Symfony CMF package.
  4. *
  5. * (c) 2011-2015 Symfony CMF
  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\Cmf\Component\Routing;
  11. use Symfony\Component\Routing\Route;
  12. /**
  13. * Interface to be implemented by content that wants to be support route generation
  14. * from content with the DynamicRouter by providing the routes that point to it.
  15. */
  16. interface RouteReferrersReadInterface
  17. {
  18. /**
  19. * Get the routes that point to this content.
  20. *
  21. * @return Route[] Route instances that point to this content
  22. */
  23. public function getRoutes();
  24. }