diff --git a/README.md b/README.md index 470fbe2..c90c79c 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ $spigotClient->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-spigot-api/2.4.0`. A user agent set with `setUserAgent()` replaces it. +e.g. `aternos/php-spigot-api/3.0.0`. A user agent set with `setUserAgent()` replaces it. ### Error Handling All methods that send a request throw an `Aternos\SpigotApi\ApiException` if the request fails. diff --git a/config.yaml b/config.yaml index 16cdd38..a1a15e9 100644 --- a/config.yaml +++ b/config.yaml @@ -1,5 +1,5 @@ invokerPackage: Aternos\SpigotApi -artifactVersion: 2.4.0 +artifactVersion: 3.0.0 generatorName: php-nextgen outputDir: . sourceFolder: src diff --git a/src/Client/SpigotAPIClient.php b/src/Client/SpigotAPIClient.php index 5230dc7..365103e 100644 --- a/src/Client/SpigotAPIClient.php +++ b/src/Client/SpigotAPIClient.php @@ -33,7 +33,7 @@ public function __construct(?Configuration $configuration = null, ?ClientInterfa } /** - * Get the installed version of this library, e.g. "2.4.0" or "dev-main" + * Get the installed version of this library, e.g. "3.0.0" or "dev-main" * Returns "unknown" if the version cannot be determined, e.g. if the library was not installed using composer. * * @return string @@ -48,7 +48,7 @@ public static function getLibraryVersion(): string } /** - * Get the user agent that identifies this library, e.g. "aternos/php-spigot-api/2.4.0" + * Get the user agent that identifies this library, e.g. "aternos/php-spigot-api/3.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 f5705c1..a0ed246 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -99,7 +99,7 @@ class Configuration * * @var string */ - protected string $userAgent = 'OpenAPI-Generator/2.4.0/PHP'; + protected string $userAgent = 'OpenAPI-Generator/3.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: 0.2' . PHP_EOL; - $report .= ' SDK Package Version: 2.4.0' . PHP_EOL; + $report .= ' SDK Package Version: 3.0.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report;