Skip to content

Commit 3ec2fae

Browse files
authored
Fix dependencies (#331)
1 parent 2c07102 commit 3ec2fae

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@
7676
"yiisoft/router-fastroute": "^3.0",
7777
"yiisoft/translator": "^3.0",
7878
"yiisoft/translator-message-php": "^1.1",
79-
"yiisoft/view": "^8.0",
79+
"yiisoft/view": "^10.0",
8080
"yiisoft/yii-console": "^2.0",
8181
"yiisoft/yii-debug": "dev-master|dev-php80",
8282
"yiisoft/yii-event": "^2.0",
8383
"yiisoft/yii-http": "^1.0",
8484
"yiisoft/yii-middleware": "^1.0",
8585
"yiisoft/yii-runner-console": "^2.0",
8686
"yiisoft/yii-runner-http": "^2.0",
87-
"yiisoft/yii-view": "^6.0"
87+
"yiisoft/yii-view-renderer": "^7.1"
8888
},
8989
"require-dev": {
9090
"codeception/c3": "^2.7",

config/common/params.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Yiisoft\Router\CurrentRoute;
1111
use Yiisoft\Router\UrlGeneratorInterface;
1212
use Yiisoft\Translator\TranslatorInterface;
13-
use Yiisoft\Yii\View\CsrfViewInjection;
13+
use Yiisoft\Yii\View\Renderer\CsrfViewInjection;
1414

1515
return [
1616
'app' => [
@@ -39,7 +39,9 @@
3939
],
4040
],
4141

42-
'yiisoft/yii-view' => [
42+
'yiisoft/yii-view-renderer' => [
43+
'viewPath' => '@views',
44+
'layout' => '@layout/main.php',
4345
'injections' => [
4446
Reference::to(CommonViewInjection::class),
4547
Reference::to(CsrfViewInjection::class),

src/Controller/SiteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace App\Controller;
66

77
use Psr\Http\Message\ResponseInterface;
8-
use Yiisoft\Yii\View\ViewRenderer;
8+
use Yiisoft\Yii\View\Renderer\ViewRenderer;
99

1010
final class SiteController
1111
{

src/Handler/NotFoundHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Yiisoft\Http\Status;
1111
use Yiisoft\Router\UrlGeneratorInterface;
1212
use Yiisoft\Router\CurrentRoute;
13-
use Yiisoft\Yii\View\ViewRenderer;
13+
use Yiisoft\Yii\View\Renderer\ViewRenderer;
1414

1515
final class NotFoundHandler implements RequestHandlerInterface
1616
{

src/ViewInjection/CommonViewInjection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace App\ViewInjection;
66

77
use App\ApplicationParameters;
8-
use Yiisoft\Yii\View\CommonParametersInjectionInterface;
8+
use Yiisoft\Yii\View\Renderer\CommonParametersInjectionInterface;
99
use Yiisoft\Router\UrlGeneratorInterface;
1010

1111
final class CommonViewInjection implements CommonParametersInjectionInterface

src/ViewInjection/LayoutViewInjection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Yiisoft\Assets\AssetManager;
99
use Yiisoft\I18n\Locale;
1010
use Yiisoft\Router\CurrentRoute;
11-
use Yiisoft\Yii\View\LayoutParametersInjectionInterface;
11+
use Yiisoft\Yii\View\Renderer\LayoutParametersInjectionInterface;
1212

1313
final class LayoutViewInjection implements LayoutParametersInjectionInterface
1414
{

src/ViewInjection/TranslatorViewInjection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace App\ViewInjection;
66

77
use Yiisoft\Translator\TranslatorInterface;
8-
use Yiisoft\Yii\View\CommonParametersInjectionInterface;
8+
use Yiisoft\Yii\View\Renderer\CommonParametersInjectionInterface;
99

1010
final class TranslatorViewInjection implements CommonParametersInjectionInterface
1111
{

0 commit comments

Comments
 (0)