SilverStripe\S3\Adapter\ProtectedAdapter
An adapter that allows the use of AWS S3 to store and transmit assets rather than storing them locally.
Synopsis
class ProtectedAdapter
extends AwsS3Adapter
implements
ProtectedAdapter
{
- // members
- protected int|string $expiry = 300;
- // methods
- public void __construct()
- public int|string getExpiry()
- public $this setExpiry()
- public string getProtectedUrl()
- public void getVisibility()
Hierarchy
Extends
- League\Flysystem\AwsS3v3\AwsS3Adapter
Implements
- SilverStripe\Assets\Flysystem\ProtectedAdapter
Members
protected
- $expiry
—
SilverStripe\S3\Adapter\int|string
Pre-signed request expiration time in seconds, or relative string
Methods
public
- __construct()
- getExpiry()
- getProtectedUrl()
- getVisibility()
- setExpiry() — Set expiry. Supports either number of seconds (in int) or a literal relative string.