File tree Expand file tree Collapse file tree 7 files changed +11
-9
lines changed Expand file tree Collapse file tree 7 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 76
76
"yiisoft/router-fastroute" : " ^3.0" ,
77
77
"yiisoft/translator" : " ^3.0" ,
78
78
"yiisoft/translator-message-php" : " ^1.1" ,
79
- "yiisoft/view" : " ^8 .0" ,
79
+ "yiisoft/view" : " ^10 .0" ,
80
80
"yiisoft/yii-console" : " ^2.0" ,
81
81
"yiisoft/yii-debug" : " dev-master|dev-php80" ,
82
82
"yiisoft/yii-event" : " ^2.0" ,
83
83
"yiisoft/yii-http" : " ^1.0" ,
84
84
"yiisoft/yii-middleware" : " ^1.0" ,
85
85
"yiisoft/yii-runner-console" : " ^2.0" ,
86
86
"yiisoft/yii-runner-http" : " ^2.0" ,
87
- "yiisoft/yii-view" : " ^6.0 "
87
+ "yiisoft/yii-view-renderer " : " ^7.1 "
88
88
},
89
89
"require-dev" : {
90
90
"codeception/c3" : " ^2.7" ,
Original file line number Diff line number Diff line change 10
10
use Yiisoft \Router \CurrentRoute ;
11
11
use Yiisoft \Router \UrlGeneratorInterface ;
12
12
use Yiisoft \Translator \TranslatorInterface ;
13
- use Yiisoft \Yii \View \CsrfViewInjection ;
13
+ use Yiisoft \Yii \View \Renderer \ CsrfViewInjection ;
14
14
15
15
return [
16
16
'app ' => [
39
39
],
40
40
],
41
41
42
- 'yiisoft/yii-view ' => [
42
+ 'yiisoft/yii-view-renderer ' => [
43
+ 'viewPath ' => '@views ' ,
44
+ 'layout ' => '@layout/main.php ' ,
43
45
'injections ' => [
44
46
Reference::to (CommonViewInjection::class),
45
47
Reference::to (CsrfViewInjection::class),
Original file line number Diff line number Diff line change 5
5
namespace App \Controller ;
6
6
7
7
use Psr \Http \Message \ResponseInterface ;
8
- use Yiisoft \Yii \View \ViewRenderer ;
8
+ use Yiisoft \Yii \View \Renderer \ ViewRenderer ;
9
9
10
10
final class SiteController
11
11
{
Original file line number Diff line number Diff line change 10
10
use Yiisoft \Http \Status ;
11
11
use Yiisoft \Router \UrlGeneratorInterface ;
12
12
use Yiisoft \Router \CurrentRoute ;
13
- use Yiisoft \Yii \View \ViewRenderer ;
13
+ use Yiisoft \Yii \View \Renderer \ ViewRenderer ;
14
14
15
15
final class NotFoundHandler implements RequestHandlerInterface
16
16
{
Original file line number Diff line number Diff line change 5
5
namespace App \ViewInjection ;
6
6
7
7
use App \ApplicationParameters ;
8
- use Yiisoft \Yii \View \CommonParametersInjectionInterface ;
8
+ use Yiisoft \Yii \View \Renderer \ CommonParametersInjectionInterface ;
9
9
use Yiisoft \Router \UrlGeneratorInterface ;
10
10
11
11
final class CommonViewInjection implements CommonParametersInjectionInterface
Original file line number Diff line number Diff line change 8
8
use Yiisoft \Assets \AssetManager ;
9
9
use Yiisoft \I18n \Locale ;
10
10
use Yiisoft \Router \CurrentRoute ;
11
- use Yiisoft \Yii \View \LayoutParametersInjectionInterface ;
11
+ use Yiisoft \Yii \View \Renderer \ LayoutParametersInjectionInterface ;
12
12
13
13
final class LayoutViewInjection implements LayoutParametersInjectionInterface
14
14
{
Original file line number Diff line number Diff line change 5
5
namespace App \ViewInjection ;
6
6
7
7
use Yiisoft \Translator \TranslatorInterface ;
8
- use Yiisoft \Yii \View \CommonParametersInjectionInterface ;
8
+ use Yiisoft \Yii \View \Renderer \ CommonParametersInjectionInterface ;
9
9
10
10
final class TranslatorViewInjection implements CommonParametersInjectionInterface
11
11
{
You can’t perform that action at this time.
0 commit comments