From 711f4d18fd24658f0e9b4384ca1add1191d9a134 Mon Sep 17 00:00:00 2001
From: Sergei Predvoditelev
Date: Mon, 17 Jun 2024 10:29:13 +0300
Subject: [PATCH] Rename package to Yii View Renderer (#116)
---
CHANGELOG.md | 3 ++-
README.md | 20 ++++++++++----------
UPGRADE.md | 3 ++-
composer.json | 11 ++++++-----
config/di-web.php | 6 +++---
config/params.php | 2 +-
phpunit.xml.dist | 2 +-
7 files changed, 25 insertions(+), 22 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c8b45d4..51f6670 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,9 @@
-# Yii View Extension Change Log
+# Yii View Renderer Change Log
## 7.0.0 under development
- Chg #115: Only a full path can now be used as a layout (@vjik)
+- Chg #116: Rename package to `yiisoft/yii-view-renderer` (@vjik)
## 6.1.1 June 06, 2024
diff --git a/README.md b/README.md
index e2dd97e..207132d 100644
--- a/README.md
+++ b/README.md
@@ -2,19 +2,19 @@
- Yii View Extension
+ Yii View Renderer
-[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii-view/v/stable.png)](https://packagist.org/packages/yiisoft/yii-view)
-[![Total Downloads](https://poser.pugx.org/yiisoft/yii-view/downloads.png)](https://packagist.org/packages/yiisoft/yii-view)
-[![Build status](https://github.com/yiisoft/yii-view/workflows/build/badge.svg)](https://github.com/yiisoft/yii-view/actions?query=workflow%3Abuild)
-[![Code Coverage](https://codecov.io/gh/yiisoft/yii-view/graph/badge.svg?token=WBV13RDIPX)](https://codecov.io/gh/yiisoft/yii-view)
-[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fyii-view%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/yii-view/master)
-[![static analysis](https://github.com/yiisoft/yii-view/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/yii-view/actions?query=workflow%3A%22static+analysis%22)
-[![type-coverage](https://shepherd.dev/github/yiisoft/yii-view/coverage.svg)](https://shepherd.dev/github/yiisoft/yii-view)
+[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii-view-renderer/v/stable.png)](https://packagist.org/packages/yiisoft/yii-view-renderer)
+[![Total Downloads](https://poser.pugx.org/yiisoft/yii-view-renderer/downloads.png)](https://packagist.org/packages/yiisoft/yii-view-renderer)
+[![Build status](https://github.com/yiisoft/yii-view-renderer/workflows/build/badge.svg)](https://github.com/yiisoft/yii-view-renderer/actions?query=workflow%3Abuild)
+[![Code Coverage](https://codecov.io/gh/yiisoft/yii-view-renderer/graph/badge.svg?token=WBV13RDIPX)](https://codecov.io/gh/yiisoft/yii-view-renderer)
+[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fyii-view-renderer%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/yii-view-renderer/master)
+[![static analysis](https://github.com/yiisoft/yii-view-renderer/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/yii-view-renderer/actions?query=workflow%3A%22static+analysis%22)
+[![type-coverage](https://shepherd.dev/github/yiisoft/yii-view-renderer/coverage.svg)](https://shepherd.dev/github/yiisoft/yii-view-renderer)
-The package is an extension of the [Yii View Rendering Library](https://github.com/yiisoft/view/). It adds
+The package is an extension of the [Yii View](https://github.com/yiisoft/view/) rendering library. It adds
WEB-specific functionality and compatibility with [PSR-7](https://www.php-fig.org/psr/psr-7/) interfaces.
## Requirements
@@ -306,7 +306,7 @@ that. You may also check out other [Yii Community Resources](https://www.yiifram
## License
-The Yii View Extension is free software. It is released under the terms of the BSD License.
+The Yii View Renderer is free software. It is released under the terms of the BSD License.
Please see [`LICENSE`](./LICENSE.md) for more information.
Maintained by [Yii Software](https://www.yiiframework.com/).
diff --git a/UPGRADE.md b/UPGRADE.md
index e01bf02..e7ad97c 100644
--- a/UPGRADE.md
+++ b/UPGRADE.md
@@ -1,4 +1,4 @@
-# Upgrading Instructions for Yii View Extension
+# Upgrading Instructions for Yii View Renderer
This file contains the upgrade notes. These notes highlight changes that could break your
application when you upgrade the package from one version to another.
@@ -10,3 +10,4 @@ application when you upgrade the package from one version to another.
## Upgrade from 6.x
- Change layout value that passed to `ViewRenderer` constructor and `withLayout()` method to full path.
+- Rename package configuration parameters key from "yiisoft/yii-view" to "yiisoft/yii-view-renderer".
diff --git a/composer.json b/composer.json
index 11630bb..7fe65e0 100644
--- a/composer.json
+++ b/composer.json
@@ -1,16 +1,17 @@
{
- "name": "yiisoft/yii-view",
+ "name": "yiisoft/yii-view-renderer",
"type": "library",
- "description": "Yii View Extension",
+ "description": "PSR-7 compatible view renderer",
"keywords": [
"yii",
- "view"
+ "view",
+ "renderer"
],
"homepage": "https://www.yiiframework.com/",
"license": "BSD-3-Clause",
"support": {
- "issues": "https://github.com/yiisoft/yii-view/issues?state=open",
- "source": "https://github.com/yiisoft/yii-view",
+ "issues": "https://github.com/yiisoft/yii-view-renderer/issues?state=open",
+ "source": "https://github.com/yiisoft/yii-view-renderer",
"forum": "https://www.yiiframework.com/forum/",
"wiki": "https://www.yiiframework.com/wiki/",
"irc": "ircs://irc.libera.chat:6697/yii",
diff --git a/config/di-web.php b/config/di-web.php
index adb60fb..7617b64 100644
--- a/config/di-web.php
+++ b/config/di-web.php
@@ -12,9 +12,9 @@
InjectionContainerInterface::class => InjectionContainer::class,
ViewRenderer::class => [
'__construct()' => [
- 'viewPath' => $params['yiisoft/yii-view']['viewPath'],
- 'layout' => $params['yiisoft/yii-view']['layout'],
- 'injections' => $params['yiisoft/yii-view']['injections'],
+ 'viewPath' => $params['yiisoft/yii-view-renderer']['viewPath'],
+ 'layout' => $params['yiisoft/yii-view-renderer']['layout'],
+ 'injections' => $params['yiisoft/yii-view-renderer']['injections'],
],
],
];
diff --git a/config/params.php b/config/params.php
index c285fed..3f36911 100644
--- a/config/params.php
+++ b/config/params.php
@@ -5,7 +5,7 @@
use Yiisoft\Yii\View\Debug\WebViewCollector;
return [
- 'yiisoft/yii-view' => [
+ 'yiisoft/yii-view-renderer' => [
'viewPath' => '@views',
'layout' => '@layout/main',
'injections' => [
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index fdbd536..cdcd698 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -16,7 +16,7 @@
-
+
./tests