Imbo\EventListener\ImageVariations\Storage\S3::getImageVariation PHP Method

getImageVariation() public method

public getImageVariation ( $user, $imageIdentifier, $width )
    public function getImageVariation($user, $imageIdentifier, $width)
    {
        try {
            $model = $this->getClient()->getObject(['Bucket' => $this->params['bucket'], 'Key' => $this->getImagePath($user, $imageIdentifier, $width)]);
        } catch (NoSuchKeyException $e) {
            return null;
        }
        return (string) $model->get('Body');
    }