jimchen / yii2-flysystem-contract
The flysystem extension contract for the Yii framework
1.1.0
2018-08-28 16:06 UTC
Requires
- league/flysystem: ~1.0
- yiisoft/yii2: ~2.0
Requires (Dev)
Suggests
- league/flysystem-cached-adapter: An adapter decorator to enable meta-data caching.
This package is auto-updated.
Last update: 2024-10-18 03:48:18 UTC
README
The flysystem extension contract for the Yii framework, the abstract class is from creocoder/yii2-flysystem, the repo's purpose is to separate the abstraction and implementation.
Installing
$ composer require jimchen/yii2-flysystem-contract -vvv
Usage
use jimchen\flysystem\Filesystem; class xxxFilesystem extends Filesystem { /** * @return \League\Flysystem\AdapterInterface */ protected function prepareAdapter() { // TODO: Implement prepareAdapter() method. } }
\jimchen\flysystem\Filesystem
is a Yii2 Component, so your xxxFilesystem
can register as a Yii2 Component.
Thanks
License
MIT