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:
commit
af0e02c35e
@ -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;
|
||||
|
Reference in New Issue
Block a user