RouteGeneratorInterface.php 850 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. *
  10. */
  11. namespace Sonata\AdminBundle\Route;
  12. use Sonata\AdminBundle\Admin\AdminInterface;
  13. interface RouteGeneratorInterface
  14. {
  15. /**
  16. * @param \Sonata\AdminBundle\Admin\AdminInterface $admin
  17. * @param $name
  18. * @param array $parameters
  19. * @param bool $absolute
  20. * @return string
  21. */
  22. function generateUrl(AdminInterface $admin, $name, array $parameters = array(), $absolute = false);
  23. /**
  24. * @param $name
  25. * @param array $parameters
  26. * @param bool $absolute
  27. * @return void
  28. */
  29. function generate($name, array $parameters = array(), $absolute = false);
  30. }