Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/magento/module-aws-s3/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/module-aws-s3/Model/Config.php
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\AwsS3\Model;

use Magento\Framework\App\DeploymentConfig;

/**
 * Configuration for AWS S3.
 */
class Config
{
    public const PATH_ENDPOINT = 'remote_storage/endpoint';
    public const PATH_REGION = 'remote_storage/region';
    public const PATH_BUCKET = 'remote_storage/bucket';
    public const PATH_ACCESS_KEY = 'remote_storage/access_key';
    public const PATH_SECRET_KEY = 'remote_storage/secret_key';
    public const PATH_PREFIX = 'remote_storage/prefix';
    public const PATH_PATH_STYLE = 'remote_storage/path_style';

    /**
     * @var DeploymentConfig
     */
    private $config;

    /**
     * @param DeploymentConfig $config
     */
    public function __construct(DeploymentConfig $config)
    {
        $this->config = $config;
    }

    /**
     * Retrieves endpoint.
     *
     * @return string
     */
    public function getEndpoint(): string
    {
        return (string)$this->config->get(self::PATH_ENDPOINT);
    }

    /**
     * Retrieves region.
     *
     * @return string
     */
    public function getRegion(): string
    {
        return (string)$this->config->get(self::PATH_REGION);
    }

    /**
     * Retrieves bucket.
     *
     * @return string
     */
    public function getBucket(): string
    {
        return (string)$this->config->get(self::PATH_BUCKET);
    }

    /**
     * Retrieves access key.
     *
     * @return string
     */
    public function getAccessKey(): string
    {
        return (string)$this->config->get(self::PATH_ACCESS_KEY);
    }

    /**
     * Retrieves secret key.
     *
     * @return string
     */
    public function getSecretKey(): string
    {
        return (string)$this->config->get(self::PATH_SECRET_KEY);
    }

    /**
     * Retrieves prefix.
     *
     * @return string
     */
    public function getPrefix(): string
    {
        return (string)$this->config->get(self::PATH_PREFIX, '');
    }

    /**
     * Retrieves endpoint.
     *
     * @return string
     */
    public function getPathStyle(): string
    {
        return (string)$this->config->get(self::PATH_PATH_STYLE, '0');
    }
}

Spamworldpro Mini