jc-it/yii2-flysystem-asset-manager
Composer 安装命令:
composer require jc-it/yii2-flysystem-asset-manager
包简介
Asset manager that uses flysystem for Yii2
README 文档
README
This extension provides an asset manager that uses flysystem for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require jc-it/yii2-flysystem-asset-manager
or add
"jc-it/yii2-flysystem-asset-manager": "^<latest version>"
to the require section of your composer.json file.
Configuration
... 'components' => [ 'assetFilesystem' => function() { return new \League\Flysystem\Filesystem(new \League\Flysystem\Local\LocalFilesystemAdapter(\Yii::getAlias('@webroot/assets'))); }, 'assetManager' => [ 'class' => \JCIT\components\AssetManager::class, 'filesystem' => 'assetFilesystem', ], ],
TODO
- Add tests
Credits
统计信息
- 总下载量: 2.5k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-31