jimchen/yii2-flysystem-contract

The flysystem extension contract for the Yii framework

1.1.0 2018-08-28 16:06 UTC

This package is auto-updated.

Last update: 2022-05-17 22:09:48 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

creocoder/yii2-flysystem

License

MIT