RouteGeneratorInterface.php 988 B

1234567891011121314151617181920212223242526272829303132333435
  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 string $name
  18. * @param array $parameters
  19. * @param bool $absolute
  20. *
  21. * @return string
  22. */
  23. function generateUrl(AdminInterface $admin, $name, array $parameters = array(), $absolute = false);
  24. /**
  25. * @param string $name
  26. * @param array $parameters
  27. * @param bool $absolute
  28. *
  29. * @return string
  30. */
  31. function generate($name, array $parameters = array(), $absolute = false);
  32. }