Skip to content

Commit

Permalink
Raise required yiisoft/view version to ^10.0 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Jul 1, 2024
1 parent f5d9d20 commit 31cf69a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Yii View Renderer Change Log

## 7.0.1 under development
## 7.1.0 under development

- no changes in this release.
- Chg #122: Raise required `yiisoft/view` version to `^10.0` (@vjik)

## 7.0.0 June 22, 2024

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"yiisoft/friendly-exception": "^1.0",
"yiisoft/html": "^2.5|^3.0",
"yiisoft/strings": "^2.0",
"yiisoft/view": "^9.0"
"yiisoft/view": "^10.0"
},
"require-dev": {
"httpsoft/http-message": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/ViewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ private function renderProxy(

return $currentView
->setParameters($layoutParameters)
->renderFile($layout, ['content' => $content]);
->render($layout, ['content' => $content]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/views/nested-layout/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

$this->beginPage();
echo '<html>';
echo $this->render('head');
echo $this->render('./head');
echo '<body>';
echo '<h1>' . $title . '</h1>';
echo $content;
Expand Down
2 changes: 1 addition & 1 deletion tests/views/nested/nested-1.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* @var string $name
*/

echo($label ?? 'nested-1') . ': ' . $name . '. ' . $this->render('nested-2');
echo($label ?? 'nested-1') . ': ' . $name . '. ' . $this->render('./nested-2');
2 changes: 1 addition & 1 deletion tests/views/nested/root.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
* @var string $label
*/

echo $label . ': ' . $name . '. ' . $this->render('nested-1');
echo $label . ': ' . $name . '. ' . $this->render('./nested-1');

0 comments on commit 31cf69a

Please sign in to comment.