fixed CS
This commit is contained in:
parent
ee346bbc22
commit
aee033699b
@ -35,18 +35,21 @@ class TemplateController extends ContainerAware
|
||||
{
|
||||
/** @var $response \Symfony\Component\HttpFoundation\Response */
|
||||
$response = $this->container->get('templating')->renderResponse($template);
|
||||
|
||||
if ($maxAge) {
|
||||
$response->setMaxAge($maxAge);
|
||||
}
|
||||
|
||||
if ($sharedAge) {
|
||||
$response->setSharedMaxAge($sharedAge);
|
||||
}
|
||||
|
||||
if ($private) {
|
||||
$response->setPrivate();
|
||||
} else if ($private === false || (is_null($private) && ($maxAge || $sharedAge))) {
|
||||
} elseif ($private === false || (null === $private && ($maxAge || $sharedAge))) {
|
||||
$response->setPublic($private);
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user