minor #14681 [FrameworkBundle] Removed unnecessary parameter in TemplateController (King2500)

This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #14681).

Discussion
----------

[FrameworkBundle] Removed unnecessary parameter in TemplateController

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | They should
| License       | MIT

`Response::setPublic()` doesn't have any parameters, so this parameter call is not needed.

Commits
-------

7a4394e [FrameworkBundle] Removed unnecessary parameter in TemplateController
This commit is contained in:
Fabien Potencier 2015-05-19 12:17:14 +02:00
commit af0e02c35e

View File

@ -47,7 +47,7 @@ class TemplateController extends ContainerAware
if ($private) {
$response->setPrivate();
} elseif ($private === false || (null === $private && ($maxAge || $sharedAge))) {
$response->setPublic($private);
$response->setPublic();
}
return $response;