yiisoft / yii-bootstrap5

Yii Framework Bootstrap 5 support
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
60 stars 20 forks source link

Fresh Instllation: Call to undefined method Yiisoft\Yii\Bootstrap5\Assets\BootstrapAsset::publish() #44

Closed strtob closed 3 years ago

strtob commented 3 years ago

What steps will reproduce the problem?

What is the expected result?

What do you get instead?

vendor/yiisoft/yii2/web/AssetManager.php:

Call to undefined method Yiisoft\Yii\Bootstrap5\Assets\BootstrapAsset::publish()

 */
    protected function loadBundle($name, $config = [], $publish = true)
    {
        if (!isset($config['class'])) {
            $config['class'] = $name;
        }
        /* @var $bundle AssetBundle */
        $bundle = Yii::createObject($config);
        if ($publish) {
            $bundle->publish($this);
        }

        return $bundle;
    }

    /**
     * Loads dummy bundle by name.
     *
     * @param string $name

Additional info

Q A
Version 2.0.41
PHP version 7.4.9
Operating system debian
rustamwin commented 3 years ago

This package doesn't work with yii2 applications.