Replacing deprecated ::className() with ::class (#18671)

This commit is contained in:
Bizley
2021-05-22 22:14:54 +02:00
committed by GitHub
parent 143a9c66bf
commit 82be8b61cf
101 changed files with 488 additions and 488 deletions

View File

@ -56,7 +56,7 @@ $this->registerJs(
```php
$this->registerJsFile(
'@web/js/main.js',
['depends' => [\yii\web\JqueryAsset::className()]]
['depends' => [\yii\web\JqueryAsset::class]]
);
```
@ -95,7 +95,7 @@ body { background: #f00; }
```php
$this->registerCssFile("@web/css/themes/black-and-white.css", [
'depends' => [\yii\bootstrap\BootstrapAsset::className()],
'depends' => [\yii\bootstrap\BootstrapAsset::class],
'media' => 'print',
], 'css-print-theme');
```