$options->
setAllowedTypes('options', 'array'
);
$options->
setAllowedTypes('endpoint', 'string'
);
$options->
setAllowedTypes('use_path_style_endpoint', 'bool'
);
$options->
setDefault('root', ''
);
$options->
setDefault('options',
[]);
/** @var S3Config $config */
$config =
$options->
resolve($definition);
if (\
array_key_exists('credentials',
$config)) { $config['credentials'
] =
$this->
resolveCredentialsOptions($config['credentials'
]);
} return $config;
} /**
* @param array<string, mixed> $credentials
*
* @return array{key: string, secret: string}
*/
private function resolveCredentialsOptions(array
$credentials): array
{