Skip to content

Commit

Permalink
Change the global PHP variable of the Brevo version to a constant on …
Browse files Browse the repository at this point in the history
…the Configuration class
  • Loading branch information
tups committed Oct 9, 2024
1 parent ab71297 commit 1d11fac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@
* @link https://github.com/swagger-api/swagger-codegen
*/

$GLOBALS['version'] = '2.0.0';

class Configuration
{
/**
* Version of the package
*/
const VERSION = '2.0.0';

private static $defaultConfiguration;

/**
Expand Down Expand Up @@ -120,7 +124,7 @@ class Configuration
public function __construct()
{
$this->tempFolderPath = sys_get_temp_dir();
$this->userAgent = 'brevo_clientAPI/v' . $GLOBALS['version'] . '/php';
$this->userAgent = 'brevo_clientAPI/v' . self::VERSION . '/php';
}

/**
Expand Down

0 comments on commit 1d11fac

Please sign in to comment.