A simple interface for composite Flysystem adapters.
$ composer require webalternatif/flysystem-composite
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)
}
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