mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Replacing deprecated ::className() with ::class (#18671)
This commit is contained in:
@ -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');
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user