Skip to content

Commit

Permalink
Rename package to Yii View Renderer (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Jun 17, 2024
1 parent 2b96c79 commit 711f4d1
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 22 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
<a href="https://github.com/yiisoft" target="_blank">
<img src="https://yiisoft.github.io/docs/images/yii_logo.svg" height="100px" alt="Yii">
</a>
<h1 align="center">Yii View Extension</h1>
<h1 align="center">Yii View Renderer</h1>
<br>
</p>

[![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
Expand Down Expand Up @@ -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/).
Expand Down
3 changes: 2 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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".
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions config/di-web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
],
],
];
2 changes: 1 addition & 1 deletion config/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Yiisoft\Yii\View\Debug\WebViewCollector;

return [
'yiisoft/yii-view' => [
'yiisoft/yii-view-renderer' => [
'viewPath' => '@views',
'layout' => '@layout/main',
'injections' => [
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</php>

<testsuites>
<testsuite name="Yii View tests">
<testsuite name="Yii View Renderer tests">
<directory>./tests</directory>
</testsuite>
</testsuites>
Expand Down

0 comments on commit 711f4d1

Please sign in to comment.