Skip to content

Commit

Permalink
Fix calls to authHandler method on ApiResource (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondeJK authored Jul 4, 2024
1 parent 54827de commit 2b0131c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ProactiveConnect/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __invoke(ContainerInterface $container): Client
$api = $container->make(APIResource::class);
$api->setIsHAL(false)
->setErrorsOn200(false)
->setAuthHandler([new KeypairHandler()])
->setAuthHandlers([new KeypairHandler()])
->setBaseUrl('https://api-eu.vonage.com/v0.1/bulk/');

return new Client($api);
Expand Down
2 changes: 1 addition & 1 deletion src/Secrets/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __invoke(FactoryInterface $container): Client
{
$api = $container->make(APIResource::class);
$api->setBaseUri('/accounts')
->setAuthHandler(new BasicHandler())
->setAuthHandlers(new BasicHandler())
->setCollectionName('secrets');

return new Client($api);
Expand Down
2 changes: 1 addition & 1 deletion src/Users/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __invoke(ContainerInterface $container): Client
$api
->setBaseUri('/v1/users')
->setCollectionName('users')
->setAuthHandler(new KeypairHandler());
->setAuthHandlers(new KeypairHandler());

$hydrator = new ArrayHydrator();
$hydrator->setPrototype(new User());
Expand Down
2 changes: 1 addition & 1 deletion src/Verify2/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __invoke(ContainerInterface $container): Client
$api = $container->make(APIResource::class);
$api->setIsHAL(false)
->setErrorsOn200(false)
->setAuthHandler([new KeypairHandler(), new BasicHandler()])
->setAuthHandlers([new KeypairHandler(), new BasicHandler()])
->setBaseUrl('https://api.nexmo.com/v2/verify');

return new Client($api);
Expand Down

0 comments on commit 2b0131c

Please sign in to comment.