Vonage / vonage-php-sdk-video

Vonage Video SDK for PHP
Apache License 2.0
0 stars 2 forks source link

Fix calls to authHandler method on ApiResource #9

Closed ttebify closed 1 month ago

ttebify commented 1 month ago

Great work maintaining this project.

I think a hotfix is needed for the Auth Handler's changed method name on ApiResource.

Any call to instantiate the Client class like here:

public function __construct(array $config)
{
    $credentials = new Keypair(
        key: $config['secret'],
        application: $config['app_id']
    );

    $client = new \Vonage\Client($credentials);

    $this->videoClient = $client->video();
}

throws the following error:

{
    "message": "Call to undefined method Vonage\\Client\\APIResource::setAuthHandler()",
    "exception": "Error",
    "file": "/Users/ttebify/Work/p/chilink-project/chilink/vendor/vonage/video/src/ClientFactory.php",
    "line": 21,
    "...": "...rest"
}

This requires urgent attention, as it prevents me from continuing to integrate the video SDK into my application. I am currently using a patch to work around this issue and hope it is resolved soon.

Cheers!

dragonmantank commented 1 month ago

Thanks! I pushed out 1.0.4 which should show up in packagist soon.