$service
$service : object
Amazon S3 adapter.
This class implements the necessary methods to interact with Amazon S3.
__construct(array $config) : mixed
Constructor.
Initializes the adapter with configuration details, including the bucket name, credentials, and optional settings. Throws an exception if the required config parameters are missing.
array | $config | The configuration array with bucket, key, secret, and other options. |
If the configuration lacks required parameters.
ensureBucketExists() : bool
Ensures the specified bucket exists.
If the bucket does not exist and the create option is set to true, it will try to create the bucket. Throws a RuntimeException if the bucket does not exist and the create option is false.
if the bucket does not exist or could not be created.
True if the bucket exists or was successfully created.