Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## 1.2.1 under development

- Chg #447: Allow symfony/console 8 (@samdark)
- Enh #449: Update composer dependencies and refactor to replace use of deprecated classes (@vjik)
- Chg #449: Remove `yiisoft/data-response` dependency (@vjik)

## 1.2.0 February 20, 2026

Expand Down
21 changes: 10 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,38 +46,37 @@
"yiisoft/assets": "^5.1.2",
"yiisoft/config": "^1.6.2",
"yiisoft/csrf": "^2.2.3",
"yiisoft/data-response": "^2.1.2",
"yiisoft/definitions": "^3.4.1",
"yiisoft/di": "^1.4.1",
"yiisoft/error-handler": "^4.3.1",
"yiisoft/error-handler": "^4.3.2",
"yiisoft/html": "^3.12",
"yiisoft/http": "^1.3",
"yiisoft/input-http": "^1.0.1",
"yiisoft/log": "^2.2.0",
"yiisoft/log-target-file": "^3.1",
"yiisoft/middleware-dispatcher": "^5.4",
"yiisoft/request-provider": "^1.2",
"yiisoft/request-provider": "^1.3",
"yiisoft/router": "^4.0.2",
"yiisoft/router-fastroute": "^4.0.3",
"yiisoft/session": "^3.0.1",
"yiisoft/view": "^12.2.2",
"yiisoft/view": "^12.2.3",
"yiisoft/yii-console": "^2.4.2",
"yiisoft/yii-http": "^1.1.1",
"yiisoft/yii-runner-console": "^2.2.1",
"yiisoft/yii-runner-http": "^3.2.1",
"yiisoft/yii-view-renderer": "^7.3.1"
"yiisoft/yii-view-renderer": "^7.4"
},
"require-dev": {
"codeception/c3": "^2.9",
"codeception/codeception": "^5.3.3",
"codeception/module-asserts": "^3.2.1",
"codeception/codeception": "^5.3.5",
"codeception/module-asserts": "^3.3.0",
"codeception/module-cli": "^2.0.1",
"codeception/module-phpbrowser": "^3.0.2",
"friendsofphp/php-cs-fixer": "^3.92.3",
"phpunit/phpunit": "^11.5.46",
"rector/rector": "^2.2.14",
"friendsofphp/php-cs-fixer": "^3.94.2",
"phpunit/phpunit": "^11.5.55",
"rector/rector": "^2.3.8",
"shipmonk/composer-dependency-analyser": "^1.8.4",
"vimeo/psalm": "^6.14.2"
"vimeo/psalm": "^6.15.1"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 0 additions & 2 deletions config/web/di/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Web\NotFound\NotFoundHandler;
use Yiisoft\Csrf\CsrfTokenMiddleware;
use Yiisoft\DataResponse\Middleware\FormatDataResponse;
use Yiisoft\Definitions\DynamicReference;
use Yiisoft\Definitions\Reference;
use Yiisoft\ErrorHandler\Middleware\ErrorCatcher;
Expand All @@ -30,7 +29,6 @@
ErrorCatcher::class,
SessionMiddleware::class,
CsrfTokenMiddleware::class,
FormatDataResponse::class,
RequestCatcherMiddleware::class,
Router::class,
],
Expand Down
4 changes: 2 additions & 2 deletions src/Web/HomePage/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
namespace App\Web\HomePage;

use Psr\Http\Message\ResponseInterface;
use Yiisoft\Yii\View\Renderer\ViewRenderer;
use Yiisoft\Yii\View\Renderer\WebViewRenderer;

final readonly class Action
{
public function __construct(
private ViewRenderer $viewRenderer,
private WebViewRenderer $viewRenderer,
) {}

public function __invoke(): ResponseInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Web/NotFound/NotFoundHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
use Yiisoft\Http\Status;
use Yiisoft\Router\CurrentRoute;
use Yiisoft\Router\UrlGeneratorInterface;
use Yiisoft\Yii\View\Renderer\ViewRenderer;
use Yiisoft\Yii\View\Renderer\WebViewRenderer;

final readonly class NotFoundHandler implements RequestHandlerInterface
{
public function __construct(
private UrlGeneratorInterface $urlGenerator,
private CurrentRoute $currentRoute,
private ViewRenderer $viewRenderer,
private WebViewRenderer $viewRenderer,
) {}

public function handle(ServerRequestInterface $request): ResponseInterface
Expand Down