PHP code example of webalternatif / flysystem-composite
1. Go to this page and download the library: Download webalternatif/flysystem-composite library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webalternatif / flysystem-composite example snippets
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)
}