remove specific code testing esi integration

This commit is contained in:
Manuel Raynaud
2013-11-22 09:43:24 +01:00
parent bdc49ade98
commit a85baf6994
4 changed files with 3 additions and 22 deletions

View File

@@ -85,19 +85,11 @@ class ViewListener implements EventSubscriberInterface
$content = $parser->render($request->attributes->get('_view').".html");
if ($content instanceof Response) {
$response = $content;$event->setResponse($content);
$response = $content;
} else {
$response = new Response($content, $parser->getStatus() ?: 200);
}
$response->setCache(array(
'last_modified' => new \DateTime(),
'max_age' => 600,
's_maxage' => 600,
'private' => false,
'public' => true,
));
$event->setResponse($response);
} catch (ResourceNotFoundException $e) {
throw new NotFoundHttpException();