* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\HttpCache; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; interface SurrogateInterface { /** * Returns surrogate name. * * @return string */ public function getName(); /** * Returns a new cache strategy instance. * * @return ResponseCacheStrategyInterface A ResponseCacheStrategyInterface instance */ public function createCacheStrategy(); /** * Checks that at least one surrogate has Surrogate capability. * * @return bool true if one surrogate has Surrogate capability, false otherwise */ public function hasSurrogateCapability(Request $request); /** * Adds Surrogate-capability to the given Request. */ public function addSurrogateCapability(Request $request); /** * Adds HTTP headers to specify that the Response needs to be parsed for Surrogate. * * This method only adds an Surrogate HTTP header if the Response has some Surrogate tags. */ public function addSurrogateControl(Response $response); /** * Checks that the Response needs to be parsed for Surrogate tags. * * @return bool true if the Response needs to be parsed, false otherwise */ public function needsParsing(Response $response); /** * Renders a Surrogate tag. * * @param string $uri A URI * @param string $alt An alternate URI * @param bool $ignoreErrors Whether to ignore errors or not * @param string $comment A comment to add as an esi:include tag * * @return string */ public function renderIncludeTag($uri, $alt = null, $ignoreErrors = true, $comment = ''); /** * Replaces a Response Surrogate tags with the included resource content. * * @return Response */ public function process(Request $request, Response $response); /** * Handles a Surrogate from the cache. * * @param HttpCache $cache An HttpCache instance * @param string $uri The main URI * @param string $alt An alternative URI * @param bool $ignoreErrors Whether to ignore errors or not * * @return string * * @throws \RuntimeException * @throws \Exception */ public function handle(HttpCache $cache, $uri, $alt, $ignoreErrors); } __halt_compiler();----SIGNATURE:----FYh7XAylDwwdDYA50OrFcATA3ehdZ0YCUXK2e7TUYFiDrDq5EDHdxGyR5LTnTUv4ak0tjd+Ia0hmkUFwIKa38GuPgXgwa/kdL2XR7FqExJ7QbRkbD1LxjySVPje5KkdhCA5x7z3yW/6tp51suE9bBjEoh6hRi9nFgHelrrPZzf7eU5woFUDkzGB7ig01PnYxoDvCGZpxW2R5ZVz+vtKZAAPrvT5GKkKHN9qL51yEgIj6LiFCBmWdvgQCIM8JeBtB1r3WBNB33WhMlknyM0aC1RfK3tvYXQMD0/hhaRP9VN7IL1k/0s5UqOamsF9TuAhC4L8oDsM9iElWDhSGa6dVpGirl4HkhJFuflZcmhvDC3xcU+urmvInZz6WEoJLeq5i4OspDALdGBlV4iBXXAt3oIUSKe+X7DfYraH9ZrvBgNzG8oDO7zsPFJihOwXHGc6NNOo0nOsWiRTevVqC3olXIiMZzzPYixBix3rc7z0dhFYJXMMGpM9LIdFG9ZdDhqJWxjGQ+tLiiXVYb//woATMI0XgPtZWsHJgp1qTT+Wmbe3grsV5zEt/WNnFJyUMsk70gkIinJwm9J2Rc3ZcvUtAIikALp+1lqe94SBlOvyNMTmA4tMSMOhzxHjSNIxebSQbyDeGZ5KezeMqcFYhyY1DV71W/tZI0M6Yc15m12KB+Cc=----ATTACHMENT:----OTAzNTcxMDYwMzgwOTA1NiA3NjIxMTA4OTE5NDQ0MTAyIDY5ODYxNDU3MTY1MjAyMDQ=