Documentation

StorageFacade
in package

Table of Contents

Properties

$storageService  : StorageInterface|null

Methods

__construct()  : mixed
StorageFacade constructor.
getBucketContents()  : array<string|int, mixed>
Get the contents of the bucket
getSignedUrl()  : string
Get the signed URL for the given object

Properties

Methods

__construct()

StorageFacade constructor.

public __construct(string $service, string $bucket) : mixed
Parameters
$service : string
  • The storage service
$bucket : string
  • The bucket name
Tags
throws
CloudProviderException

getBucketContents()

Get the contents of the bucket

public getBucketContents(string $prefix) : array<string|int, mixed>
Parameters
$prefix : string
  • The prefix
Return values
array<string|int, mixed>
  • The bucket contents

getSignedUrl()

Get the signed URL for the given object

public getSignedUrl(string $path, DateTime $expiration) : string
Parameters
$path : string
  • The file path
$expiration : DateTime
  • The expiration time
Return values
string
  • The signed URL

        
On this page

Search results