Skip to content

Commit

Permalink
Adopt to view changes
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Apr 21, 2021
1 parent 95e6fe2 commit 003161e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ViewRenderer.php
Expand Up @@ -126,7 +126,7 @@ private function getLinkTags(): array

public function renderPartial(string $view, array $parameters = []): ResponseInterface
{
$content = $this->view->render($view, $parameters, $this);
$content = $this->view->withContext($this)->render($view, $parameters);

return $this->responseFactory->createResponse($content);
}
Expand Down Expand Up @@ -190,7 +190,7 @@ private function renderProxy(
$this->injectMetaTags($metaTags);
$this->injectLinkTags($linkTags);

$content = $this->view->render($view, $contentParameters, $this);
$content = $this->view->withContext($this)->render($view, $contentParameters);

$layout = $this->findLayoutFile($this->layout);
if ($layout === null) {
Expand Down

0 comments on commit 003161e

Please sign in to comment.