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

storeImageVariation() public method

public storeImageVariation ( $user, $imageIdentifier, $imageData, $width )
    public function storeImageVariation($user, $imageIdentifier, $imageData, $width)
    {
        try {
            $this->getClient()->putObject(['Bucket' => $this->params['bucket'], 'Key' => $this->getImagePath($user, $imageIdentifier, $width), 'Body' => $imageData]);
        } catch (S3Exception $e) {
            throw new StorageException('Could not store image', 500);
        }
        return true;
    }