webalternatif/flysystem-composite
最新稳定版本:v0.3.0
Composer 安装命令:
composer require webalternatif/flysystem-composite
包简介
A simple interface for composite Flysystem adapters
README 文档
README
A simple interface for composite Flysystem adapters.
Installation
$ composer require webalternatif/flysystem-composite
Usage
use Webf\Flysystem\Composite\CompositeFilesystemAdapter; /** * @template T of FilesystemAdapter * @template-implements CompositeFilesystemAdapter<T> */ class MyWrapperAdapter implements CompositeFilesystemAdapter { /** * @param T $innerAdapter */ public function __construct(private FilesystemAdapter $innerAdapter) { } public function getInnerAdapters() : iterable { return [$this->innerAdapter]; } // ... (implementation of FilesystemAdapter's methods) }
Tests
To run all tests, execute the command:
$ composer test
This will run Psalm and a PHP-CS-Fixer check, but you can run them individually like this:
$ composer psalm $ composer cs-check
统计信息
- 总下载量: 7.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-09