Skip to content

Commit

Permalink
PHP 8.x compatibility #56 (#70)
Browse files Browse the repository at this point in the history
* Fix PHP 8.2 deprecation

* fix: PHP 8.2 deprecations fixed

* fix: PHP8.2 Deprecations
  • Loading branch information
BramDriesen authored Aug 27, 2024
1 parent 2f4e6cb commit 43fd4cb
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/Bynder/Api/BynderClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class BynderClient
*/
private $assetBankManager;

/**
* @var Configuration The configuration object.
*/
private $configuration;

public function __construct($configuration)
{
if ($configuration instanceof PermanentTokens\Configuration) {
Expand Down
26 changes: 25 additions & 1 deletion src/Bynder/Api/Impl/OAuth2/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,46 @@
*/
class Configuration
{
/**
* @var string The Bynder domain.
*/
private $bynderDomain;
private $rootDir;

/**
* @var string The redirect URI.
*/
private $redirectUri;

/**
* @var string Client ID.
*/
private $clientId;

/**
* @var string Client Secret.
*/
private $clientSecret;

/**
* @var string Access token.
*/
private $token;

/**
* @var array Request options.
*/
private $requestOptions;

/**
* @var string Root directory.
*/
private $rootDir;

/**
* @var object The package.
*/
private $package;

/**
* @var string Initial access token, used for logout.
*/
Expand Down
19 changes: 18 additions & 1 deletion src/Bynder/Api/Impl/PermanentTokens/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,31 @@

class Configuration
{
/**
* @var string The Bynder domain.
*/
private $bynderDomain;
private $rootDir;

/**
* @var string Permanent token.
*/
private $token;

/**
* @var array Request options.
*/
private $requestOptions;

/**
* @var string The root dir.
*/
private $rootDir;

/**
* @var object The package.
*/
private $package;

/**
* Initialises a new instance with the specified params.
*
Expand Down

0 comments on commit 43fd4cb

Please sign in to comment.