FragmentRendererInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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\HttpKernel\Fragment;
  11. use Symfony\Component\HttpFoundation\Request;
  12. use Symfony\Component\HttpKernel\Controller\ControllerReference;
  13. /**
  14. * Interface implemented by all rendering strategies.
  15. *
  16. * @author Fabien Potencier <fabien@symfony.com>
  17. *
  18. * @see Symfony\Component\HttpKernel\FragmentRenderer
  19. */
  20. interface FragmentRendererInterface
  21. {
  22. /**
  23. * Renders a URI and returns the Response content.
  24. *
  25. * @param string|ControllerReference $uri A URI as a string or a ControllerReference instance
  26. * @param Request $request A Request instance
  27. * @param array $options An array of options
  28. *
  29. * @return Response A Response instance
  30. */
  31. public function render($uri, Request $request, array $options = array());
  32. /**
  33. * Gets the name of the strategy.
  34. *
  35. * @return string The strategy name
  36. */
  37. public function getName();
  38. }