Imbo\Storage\S3::store PHP Метод

store() публичный Метод

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