Skip to content

Commit

Permalink
IXOP-583
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Pleintinger <[email protected]>
  • Loading branch information
ChripIX committed Nov 28, 2024
1 parent 2f1a547 commit 5c9e107
Show file tree
Hide file tree
Showing 491 changed files with 10,499 additions and 27,084 deletions.
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env sh

# domainrobot.json contains a definition for a class named Void
# in php Void is a reserved word which cannot be used as a class name
# we will fix that definition with sed

sed 's/ "Void" : {/ "VoidResponse" : {/' vendor/internetx/internetx-swagger-files/src/domainrobot.json > vendor/internetx/internetx-swagger-files/src/tmp_domainrobot.json
mv vendor/internetx/internetx-swagger-files/src/tmp_domainrobot.json vendor/internetx/internetx-swagger-files/src/domainrobot.json
sed 's/"#\/definitions\/Void"/"#\/definitions\/VoidResponse"/' vendor/internetx/internetx-swagger-files/src/domainrobot.json > vendor/internetx/internetx-swagger-files/src/tmp_domainrobot.json
mv vendor/internetx/internetx-swagger-files/src/tmp_domainrobot.json vendor/internetx/internetx-swagger-files/src/domainrobot.json

cd src/Model
java -jar -Dmodels -DsupportingFiles -DmodelDocs=false -DmodelTests=false ../../swagger-codegen-cli.jar generate -l php -i ../../vendor/internetx/internetx-swagger-files/src/domainrobot.json -c ../../swagger.conf
java -jar -Dmodels -DsupportingFiles -DmodelDocs=false -DmodelTests=false ../../swagger-codegen-cli.jar generate -l php -i ../../pc_domains.yaml -c ../../swagger.conf
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "internetx/php-domainrobot-sdk",
"version": "0.9.25",
"version": "0.9.26",
"description": "A php package for easy integration of the domainrobot API powered by InterNetX GmbH.",
"type": "library",
"license": "MIT",
Expand All @@ -13,7 +13,8 @@
"require-dev": {
"internetx/internetx-swagger-files": "dev-master",
"atoum/atoum": "^4.0",
"atoum/stubs": "^2.6"
"atoum/stubs": "^2.6",
"friendsofphp/php-cs-fixer": "^3.65"
},
"require": {
"guzzlehttp/guzzle": "^7.2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Lib/DomainrobotException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class DomainrobotException extends \Exception {
private $error;
private $statusCode;

public function __construct($error, $statusCode, $message = "Domainrobot Exception", $code = 0, \Exception $previous = null) {
public function __construct($error, $statusCode, $message = "Domainrobot Exception", $code = 0, ?\Exception $previous = null) {
$this->error = $error;
$this->statusCode = $statusCode;
parent::__construct($message, $code, $previous);
Expand Down
334 changes: 0 additions & 334 deletions src/Model/1.php

This file was deleted.

Loading

0 comments on commit 5c9e107

Please sign in to comment.