Skip to content

Commit

Permalink
Use yii2-extensions/asset-bootstrap5.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Nov 17, 2023
1 parent 1354f30 commit 1a39aed
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 73 deletions.
16 changes: 14 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"prefer-stable": true,
"require": {
"php": ">=8.1",
"npm-asset/bootstrap": "^5.3",
"yii2-extensions/asset-bootstrap5": "dev-main",
"yiisoft/yii2": "^2.2"
},
"require-dev": {
Expand All @@ -38,12 +38,24 @@
},
"config-plugin": {
"yii2-bootstrap5": "extension.php"
},
"installer-types": [
"bower-asset",
"npm-asset"
],
"installer-paths": {
"./node_modules/{$name}": [
"type:bower-asset",
"type:npm-asset"
]
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"yiisoft/yii2-composer": true
"yiisoft/yii2-composer": true,
"composer/installers": true,
"oomphinc/composer-installers-extender": true
}
},
"scripts": {
Expand Down
32 changes: 0 additions & 32 deletions src/BootstrapAsset.php

This file was deleted.

39 changes: 0 additions & 39 deletions src/BootstrapPluginAsset.php

This file was deleted.

1 change: 1 addition & 0 deletions src/BootstrapWidgetTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace yii\bootstrap5;

use Yii2\Asset\BootstrapPluginAsset;
use yii\base\InvalidConfigException;
use yii\helpers\Json;

Expand Down
1 change: 1 addition & 0 deletions src/ButtonGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace yii\bootstrap5;

use Throwable;
use Yii2\Asset\BootstrapAsset;
use yii\helpers\ArrayHelper;

use function implode;
Expand Down
1 change: 1 addition & 0 deletions src/ButtonToolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace yii\bootstrap5;

use Throwable;
use Yii2\Asset\BootstrapAsset;

use function implode;
use function is_array;
Expand Down
1 change: 1 addition & 0 deletions src/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use Exception;
use Throwable;
use Yii2\Asset\BootstrapPluginAsset;
use yii\base\InvalidConfigException;
use yii\helpers\ArrayHelper;

Expand Down
1 change: 1 addition & 0 deletions src/Nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Exception;
use Throwable;
use Yii;
use Yii2\Asset\BootstrapAsset;
use yii\base\InvalidConfigException;
use yii\helpers\ArrayHelper;

Expand Down
1 change: 1 addition & 0 deletions src/NavBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace yii\bootstrap5;

use Yii;
use Yii2\Asset\BootstrapPluginAsset;
use yii\helpers\ArrayHelper;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Progress.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace yii\bootstrap5;

use Exception;
use Yii2\Asset\BootstrapAsset;
use yii\base\InvalidConfigException;
use yii\helpers\ArrayHelper;

Expand Down

0 comments on commit 1a39aed

Please sign in to comment.