PHP 7.4.33
Preview: Configuration.php Size: 801 B
/home/godevadmin/www/admin/vendor/aws/Aws/S3/RegionalEndpoint/Configuration.php

<?php
namespace Aws\S3\RegionalEndpoint;

class Configuration implements ConfigurationInterface
{
    private $endpointsType;

    public function __construct($endpointsType)
    {
        $this->endpointsType = strtolower($endpointsType);
        if (!in_array($this->endpointsType, ['legacy', 'regional'])) {
            throw new \InvalidArgumentException(
                "Configuration parameter must either be 'legacy' or 'regional'."
            );
        }
    }

    /**
     * {@inheritdoc}
     */
    public function getEndpointsType()
    {
        return $this->endpointsType;
    }

    /**
     * {@inheritdoc}
     */
    public function toArray()
    {
        return [
            'endpoints_type' => $this->getEndpointsType()
        ];
    }
}

Directory Contents

Dirs: 1 × Files: 3

Name Size Perms Modified Actions
Exception DIR
- drwxrwxr-x 2024-06-18 20:10:40
Edit Download
801 B lrwxrwxr-x 2024-06-18 20:10:40
Edit Download
443 B lrwxrwxr-x 2024-06-18 20:10:40
Edit Download
7.21 KB lrwxrwxr-x 2024-06-18 20:10:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).