Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\HttpKernel\Fragment; Chris@0: Chris@0: use Symfony\Component\HttpFoundation\Request; Chris@17: use Symfony\Component\HttpFoundation\Response; Chris@0: use Symfony\Component\HttpKernel\Controller\ControllerReference; Chris@0: Chris@0: /** Chris@0: * Interface implemented by all rendering strategies. Chris@0: * Chris@0: * @author Fabien Potencier Chris@0: */ Chris@0: interface FragmentRendererInterface Chris@0: { Chris@0: /** Chris@0: * Renders a URI and returns the Response content. Chris@0: * Chris@0: * @param string|ControllerReference $uri A URI as a string or a ControllerReference instance Chris@0: * @param Request $request A Request instance Chris@0: * @param array $options An array of options Chris@0: * Chris@0: * @return Response A Response instance Chris@0: */ Chris@17: public function render($uri, Request $request, array $options = []); Chris@0: Chris@0: /** Chris@0: * Gets the name of the strategy. Chris@0: * Chris@0: * @return string The strategy name Chris@0: */ Chris@0: public function getName(); Chris@0: }