PHP Class Imbo\EventListener\ImageVariations\Storage\S3

Configuration options supported by this driver: Parameters for this adapter: - (string) key Your AWS access key - (string) secret Your AWS secret key - (string) bucket The name of the bucket to store the files in. The bucket should exist prior to using this client. Imbo will not try to automatically add the bucket for you.
Inheritance: implements Imbo\EventListener\ImageVariations\Storage\StorageInterface
Afficher le fichier Open project: imbo/imbo

Méthodes publiques

Méthode Description
__construct ( array $params = null, S3Client $client = null ) Class constructor
deleteImageVariations ( $user, $imageIdentifier, $width = null )
getImageVariation ( $user, $imageIdentifier, $width )
storeImageVariation ( $user, $imageIdentifier, $imageData, $width )

Private Methods

Méthode Description
getClient ( ) : S3Client Get the S3Client instance
getImagePath ( string $user, string $imageIdentifier, integer $width = null, boolean $includeFilename = true ) : string Get the path to an image

Method Details

__construct() public méthode

Class constructor
public __construct ( array $params = null, S3Client $client = null )
$params array Parameters for the adapter
$client Aws\S3\S3Client Configured S3Client instance

deleteImageVariations() public méthode

public deleteImageVariations ( $user, $imageIdentifier, $width = null )

getImageVariation() public méthode

public getImageVariation ( $user, $imageIdentifier, $width )

storeImageVariation() public méthode

public storeImageVariation ( $user, $imageIdentifier, $imageData, $width )