Skip to content

Commit

Permalink
Fix dependencies (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Sep 11, 2024
1 parent 2c07102 commit 3ec2fae
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@
"yiisoft/router-fastroute": "^3.0",
"yiisoft/translator": "^3.0",
"yiisoft/translator-message-php": "^1.1",
"yiisoft/view": "^8.0",
"yiisoft/view": "^10.0",
"yiisoft/yii-console": "^2.0",
"yiisoft/yii-debug": "dev-master|dev-php80",
"yiisoft/yii-event": "^2.0",
"yiisoft/yii-http": "^1.0",
"yiisoft/yii-middleware": "^1.0",
"yiisoft/yii-runner-console": "^2.0",
"yiisoft/yii-runner-http": "^2.0",
"yiisoft/yii-view": "^6.0"
"yiisoft/yii-view-renderer": "^7.1"
},
"require-dev": {
"codeception/c3": "^2.7",
Expand Down
6 changes: 4 additions & 2 deletions config/common/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Yiisoft\Router\CurrentRoute;
use Yiisoft\Router\UrlGeneratorInterface;
use Yiisoft\Translator\TranslatorInterface;
use Yiisoft\Yii\View\CsrfViewInjection;
use Yiisoft\Yii\View\Renderer\CsrfViewInjection;

return [
'app' => [
Expand Down Expand Up @@ -39,7 +39,9 @@
],
],

'yiisoft/yii-view' => [
'yiisoft/yii-view-renderer' => [
'viewPath' => '@views',
'layout' => '@layout/main.php',
'injections' => [
Reference::to(CommonViewInjection::class),
Reference::to(CsrfViewInjection::class),
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace App\Controller;

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

final class SiteController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/NotFoundHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Yiisoft\Http\Status;
use Yiisoft\Router\UrlGeneratorInterface;
use Yiisoft\Router\CurrentRoute;
use Yiisoft\Yii\View\ViewRenderer;
use Yiisoft\Yii\View\Renderer\ViewRenderer;

final class NotFoundHandler implements RequestHandlerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/ViewInjection/CommonViewInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace App\ViewInjection;

use App\ApplicationParameters;
use Yiisoft\Yii\View\CommonParametersInjectionInterface;
use Yiisoft\Yii\View\Renderer\CommonParametersInjectionInterface;
use Yiisoft\Router\UrlGeneratorInterface;

final class CommonViewInjection implements CommonParametersInjectionInterface
Expand Down
2 changes: 1 addition & 1 deletion src/ViewInjection/LayoutViewInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Yiisoft\Assets\AssetManager;
use Yiisoft\I18n\Locale;
use Yiisoft\Router\CurrentRoute;
use Yiisoft\Yii\View\LayoutParametersInjectionInterface;
use Yiisoft\Yii\View\Renderer\LayoutParametersInjectionInterface;

final class LayoutViewInjection implements LayoutParametersInjectionInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/ViewInjection/TranslatorViewInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace App\ViewInjection;

use Yiisoft\Translator\TranslatorInterface;
use Yiisoft\Yii\View\CommonParametersInjectionInterface;
use Yiisoft\Yii\View\Renderer\CommonParametersInjectionInterface;

final class TranslatorViewInjection implements CommonParametersInjectionInterface
{
Expand Down

0 comments on commit 3ec2fae

Please sign in to comment.