diff --git a/README.md b/README.md index a427fd8..7b2fe18 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ $hangarClient->setUserAgent("my-app/1.0.0 (contact@example.com)"); ### User Agent It is recommended to set a user agent that identifies your application, ideally including contact information. If you don't set a user agent, the client sends its own user agent including the installed version, -e.g. `aternos/php-hangar-api/5.1.1`. A user agent set with `setUserAgent()` replaces it. +e.g. `aternos/php-hangar-api/6.0.0`. A user agent set with `setUserAgent()` replaces it. ### Authentication Most endpoints are public. Some endpoints (e.g. the daily stats of projects and versions or editing pages) diff --git a/config.yaml b/config.yaml index 20ea3d9..06dec63 100644 --- a/config.yaml +++ b/config.yaml @@ -1,5 +1,5 @@ invokerPackage: Aternos\HangarApi -artifactVersion: 5.1.1 +artifactVersion: 6.0.0 generatorName: php-nextgen outputDir: . sourceFolder: src diff --git a/src/Client/HangarAPIClient.php b/src/Client/HangarAPIClient.php index 9a909ec..7f38ecc 100644 --- a/src/Client/HangarAPIClient.php +++ b/src/Client/HangarAPIClient.php @@ -89,7 +89,7 @@ public function __construct( } /** - * Get the installed version of this library, e.g. "5.1.1" or "dev-master" + * Get the installed version of this library, e.g. "6.0.0" or "dev-master" * Returns "unknown" if the version cannot be determined, e.g. if the library was not installed using composer. * * @return string @@ -104,7 +104,7 @@ public static function getLibraryVersion(): string } /** - * Get the user agent that identifies this library, e.g. "aternos/php-hangar-api/5.1.1" + * Get the user agent that identifies this library, e.g. "aternos/php-hangar-api/6.0.0" * It is used unless a different user agent is set with {@see setUserAgent()}. * * @return string diff --git a/src/Configuration.php b/src/Configuration.php index e0b0499..e1a0bb8 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -99,7 +99,7 @@ class Configuration * * @var string */ - protected string $userAgent = 'OpenAPI-Generator/5.1.1/PHP'; + protected string $userAgent = 'OpenAPI-Generator/6.0.0/PHP'; /** * Debug switch (default set to false) @@ -466,7 +466,7 @@ public static function toDebugReport(): string $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the OpenAPI document: 1.0' . PHP_EOL; - $report .= ' SDK Package Version: 5.1.1' . PHP_EOL; + $report .= ' SDK Package Version: 6.0.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report;