for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lamoda\Codeception\Extension\AdapterFactory;
use League\Flysystem\AdapterInterface;
use Aws\S3\S3Client;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
class AwsS3AdapterFactory implements AdapterFactoryInterface
{
/**
* @param array $config
*
* @return AdapterInterface
*/
public static function createAdapter(array $config)
$client = new S3Client($config);
return new AwsS3Adapter($client, $config['bucket']);
}