Skip to content

Error Unresolvable dependency resolving [Parameter #0 [ <required> array $args ]] in class Aws\AwsClient #201

@leonildojunior

Description

@leonildojunior

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
After performing the settings indicated in the documentation, I tried to use it in a service, according to the code below, and I got the error: Unresolvable dependency resolving [Parameter #0 [ <required> array $args ]] in class Aws\AwsClient

my code

namespace App\Services\Xpi;

use Aws\Exception\AwsException;
use Aws\SecretsManager\SecretsManagerClient;
...
  $clientAWS = new awsSecretManage([
             'profile' => 'default',
             'version' => 'latest',
             'region' => env('AWS_REGION'),
         ]);

         $token_development = $clientAWS->getSecretValue([
             'SecretId' => 'bff-dsv',
         ]);

And on the controller

use App\Services\Xpi\Client;

$clientXP = $clientXP->getClient('xxxxxx');

Version of AWS SDK for PHP?


Version of AWS Service Provider for Laravel?

Version of Laravel (php artisan --version)?
3.185.2

Version of PHP (php -v)?
7.3.22

Screenshots

Captura de tela 2021-06-27 184826

Metadata

Metadata

Labels

bugThis issue is a bug.closed-for-stalenessneeds-reproductionThis issue needs reproduction.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions