[FrameworkBundle] Changed DelegatingEngine::renderResponse to use specified engine's renderResponse
This commit is contained in:
parent
5f6a17b8cc
commit
2fa98e8a23
@ -84,12 +84,6 @@ class DelegatingEngine extends BaseDelegatingEngine implements EngineInterface
|
||||
*/
|
||||
public function renderResponse($view, array $parameters = array(), Response $response = null)
|
||||
{
|
||||
if (null === $response) {
|
||||
$response = new Response();
|
||||
}
|
||||
|
||||
$response->setContent($this->render($view, $parameters));
|
||||
|
||||
return $response;
|
||||
return $this->getEngine($view)->renderResponse($view, $parameters, $response);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user