Thanks for the link. So I understand that I need to create a class that implement DriverInterface, to use it in extend.php
like this :
use Flarum\Extend;
return [
(new Extend\Filesystem)
->driver('aws-with-cdn', AwsWithCdnDriver::class);
This DriverInterface have to implement build method that should return a Cloud object.
So I also have to create a class that implement this Cloud interface (itself extending Filesystem) and map all the function with aws flysystem adapter ? I have the feeling that i'm doing something wrong as all the function needed for the cloud interface are already defined in aws flysystem adapter.
I searched for an example somewhere but couldn't find it