Skip to content

Commit 22ec966

Browse files
vjiksamdark
andauthored
Adopt configs to new factory syntax (#134)
Co-authored-by: Alexander Makarov <[email protected]>
1 parent 8eb1887 commit 22ec966

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

config/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
return [
1111
View::class => [
12-
'__class' => View::class,
12+
'class' => View::class,
1313
'__construct()' => [
1414
'basePath' => static fn (Aliases $aliases) => $aliases->get($params['yiisoft/view']['basePath']),
1515
],

config/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525

2626
WebView::class => [
27-
'__class' => WebView::class,
27+
'class' => WebView::class,
2828
'__construct()' => [
2929
'basePath' => static fn (Aliases $aliases) => $aliases->get($params['yiisoft/view']['basePath']),
3030
],

src/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class View implements DynamicContentAwareInterface
6262
*
6363
* ```php
6464
* [
65-
* 'twig' => ['__class' => \Yiisoft\Yii\Twig\ViewRenderer::class],
65+
* 'twig' => ['class' => \Yiisoft\Yii\Twig\ViewRenderer::class],
6666
* ]
6767
* ```
6868
*

0 commit comments

Comments
 (0)