PATH:
home
/
lab2454c
/
.trash
/
core
/
vendor
/
vonage
/
client-core
/
src
/
Client
/
Credentials
/
Handler
<?php namespace Vonage\Client\Credentials\Handler; use Psr\Http\Message\RequestInterface; use Vonage\Client\Credentials\Container; use Vonage\Client\Credentials\CredentialsInterface; abstract class AbstractHandler { abstract function __invoke(RequestInterface $request, CredentialsInterface $credentials); protected function extract(string $class, CredentialsInterface $credentials): CredentialsInterface { if ($credentials instanceof $class) { return $credentials; } if ($credentials instanceof Container) { $creds = $credentials->get($class); if (!is_null($creds)) { return $creds; } } throw new \RuntimeException('Requested auth type not found'); } }
[-] TokenQueryHandler.php
[edit]
[+]
..
[-] BasicHandler.php
[edit]
[-] KeypairHandler.php
[edit]
[-] TokenBodyHandler.php
[edit]
[-] SignatureBodyFormHandler.php
[edit]
[-] HandlerInterface.php
[edit]
[-] SignatureQueryHandler.php
[edit]
[-] SignatureBodyHandler.php
[edit]
[-] TokenBodyFormHandler.php
[edit]
[-] AbstractHandler.php
[edit]