Skip to content

Commit

Permalink
fix(php): Added missing AuthenticationFailedException
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo committed Feb 5, 2024
1 parent b34e93e commit f1cb83f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ public void processOpts() {
supportingFiles.add(new SupportingFile("src/Exception/ExceptionInterface.php", toSrcPath(invokerPackage, srcBasePath), "Exception/ExceptionInterface.php"));
supportingFiles.add(new SupportingFile("src/Exception/HttpException.php", toSrcPath(invokerPackage, srcBasePath), "Exception/HttpException.php"));
supportingFiles.add(new SupportingFile("src/Exception/ExpiredAuthTokenException.php", toSrcPath(invokerPackage, srcBasePath), "Exception/ExpiredAuthTokenException.php"));
supportingFiles.add(new SupportingFile("src/Exception/AuthenticationFailedException.php", toSrcPath(invokerPackage, srcBasePath), "Exception/AuthenticationFailedException.php"));

// Api
supportingFiles.add(new SupportingFile("src/Api/ApiInterface.php", toSrcPath(invokerPackage, srcBasePath), "Api/ApiInterface.php"));
Expand Down
2 changes: 2 additions & 0 deletions config/php.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
changelog:
- 1.3.1 (2023-06-28):
- Added missing AuthenticationFailedException
- 1.3.0 (2023-06-28):
- Introducing new live streams restream feature
- Introducing new analytics endpoints
Expand Down
3 changes: 2 additions & 1 deletion templates/php/src/BaseClient.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace ApiVideo\Client;

use ApiVideo\Client\Exception\AuthenticationFailedException;
use ApiVideo\Client\Exception\ExpiredAuthTokenException;
use ApiVideo\Client\Exception\HttpException;
use ApiVideo\Client\Resource\Video\Video;
Expand Down Expand Up @@ -85,7 +86,7 @@ class BaseClient
* @param Request $commandRequest
*
* @return array|null
* @throws ClientExceptionInterface
* @throws ClientExceptionInterface|AuthenticationFailedException
*/
public function request(Request $commandRequest, bool $skipAuthRequest = false): ?array
{
Expand Down
8 changes: 8 additions & 0 deletions templates/php/src/Exception/AuthenticationFailedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace ApiVideo\Client\Exception;

class AuthenticationFailedException extends \Exception implements ExceptionInterface
{

}

0 comments on commit f1cb83f

Please sign in to comment.