RouteReferrersInterface.php 733 B

1234567891011121314151617181920212223242526272829303132333435
  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 exposes editable route
  14. * referrers.
  15. */
  16. interface RouteReferrersInterface extends RouteReferrersReadInterface
  17. {
  18. /**
  19. * Add a route to the collection.
  20. *
  21. * @param Route $route
  22. */
  23. public function addRoute($route);
  24. /**
  25. * Remove a route from the collection.
  26. *
  27. * @param Route $route
  28. */
  29. public function removeRoute($route);
  30. }