4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\Fragment;
14 use Symfony\Component\HttpFoundation\Request;
15 use Symfony\Component\HttpKernel\Controller\ControllerReference;
16 use Symfony\Component\HttpFoundation\Response;
19 * Interface implemented by all rendering strategies.
21 * @author Fabien Potencier <fabien@symfony.com>
23 interface FragmentRendererInterface
26 * Renders a URI and returns the Response content.
28 * @param string|ControllerReference $uri A URI as a string or a ControllerReference instance
29 * @param Request $request A Request instance
30 * @param array $options An array of options
32 * @return Response A Response instance
34 public function render($uri, Request $request, array $options = array());
37 * Gets the name of the strategy.
39 * @return string The strategy name
41 public function getName();