|
Ultima modificación |
Ver Log
|
| Rev |
Autor |
Línea Nro. |
Línea |
| 1 |
efrain |
1 |
<?php
|
|
|
2 |
namespace Aws\S3\Crypto;
|
|
|
3 |
|
|
|
4 |
use Aws\Crypto\MaterialsProviderInterfaceV2;
|
|
|
5 |
|
|
|
6 |
trait CryptoParamsTraitV2
|
|
|
7 |
{
|
|
|
8 |
use CryptoParamsTrait;
|
|
|
9 |
|
|
|
10 |
protected function getMaterialsProvider(array $args)
|
|
|
11 |
{
|
|
|
12 |
if ($args['@MaterialsProvider'] instanceof MaterialsProviderInterfaceV2) {
|
|
|
13 |
return $args['@MaterialsProvider'];
|
|
|
14 |
}
|
|
|
15 |
|
|
|
16 |
throw new \InvalidArgumentException('An instance of MaterialsProviderInterfaceV2'
|
|
|
17 |
. ' must be passed in the "MaterialsProvider" field.');
|
|
|
18 |
}
|
|
|
19 |
}
|