Skip to content

Commit 6533d27

Browse files
committed
fix: locked symfony serializer version
1 parent 1571172 commit 6533d27

25 files changed

+99
-49
lines changed

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hostinger/api-php-sdk",
3-
"version": "0.0.29",
3+
"version": "0.0.30",
44
"description": "Hostinger API PHP SDK",
55
"keywords": [
66
"hostinger",
@@ -25,7 +25,11 @@
2525
"ext-mbstring": "*",
2626
"guzzlehttp/guzzle": "^7.4.5",
2727
"guzzlehttp/psr7": "^2.0",
28-
"symfony/serializer-pack": "^1.3"
28+
"symfony/serializer": "~7.0.0",
29+
"phpdocumentor/reflection-docblock": "*",
30+
"phpstan/phpdoc-parser": "*",
31+
"symfony/property-access": "~7.0.0",
32+
"symfony/property-info": "~7.0.0",
2933
},
3034
"require-dev": {
3135
"friendsofphp/php-cs-fixer": "^3.5",

src/Api/BillingCatalogApi.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ public function __construct(
4040
?Configuration $config = null,
4141
?ClientInterface $client = null,
4242
) {
43-
$this->config = $config ?: Configuration::getDefaultConfiguration();
44-
$this->client = $client ?: new Client();
4543
$this->serializer = ObjectSerializer::getSerializer();
44+
$this->config = $config ?: Configuration::getDefaultConfiguration();
45+
$this->client = $client ?: new Client([
46+
'base_uri' => $this->config->getHost(),
47+
]);
4648
}
4749

4850
public function getConfig(): Configuration

src/Api/BillingOrdersApi.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ public function __construct(
4040
?Configuration $config = null,
4141
?ClientInterface $client = null,
4242
) {
43-
$this->config = $config ?: Configuration::getDefaultConfiguration();
44-
$this->client = $client ?: new Client();
4543
$this->serializer = ObjectSerializer::getSerializer();
44+
$this->config = $config ?: Configuration::getDefaultConfiguration();
45+
$this->client = $client ?: new Client([
46+
'base_uri' => $this->config->getHost(),
47+
]);
4648
}
4749

4850
public function getConfig(): Configuration

src/Api/BillingPaymentMethodsApi.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ public function __construct(
4040
?Configuration $config = null,
4141
?ClientInterface $client = null,
4242
) {
43-
$this->config = $config ?: Configuration::getDefaultConfiguration();
44-
$this->client = $client ?: new Client();
4543
$this->serializer = ObjectSerializer::getSerializer();
44+
$this->config = $config ?: Configuration::getDefaultConfiguration();
45+
$this->client = $client ?: new Client([
46+
'base_uri' => $this->config->getHost(),
47+
]);
4648
}
4749

4850
public function getConfig(): Configuration

src/Api/BillingSubscriptionsApi.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ public function __construct(
4040
?Configuration $config = null,
4141
?ClientInterface $client = null,
4242
) {
43-
$this->config = $config ?: Configuration::getDefaultConfiguration();
44-
$this->client = $client ?: new Client();
4543
$this->serializer = ObjectSerializer::getSerializer();
44+
$this->config = $config ?: Configuration::getDefaultConfiguration();
45+
$this->client = $client ?: new Client([
46+
'base_uri' => $this->config->getHost(),
47+
]);
4648
}
4749

4850
public function getConfig(): Configuration

src/Api/DNSSnapshotApi.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ public function __construct(
4040
?Configuration $config = null,
4141
?ClientInterface $client = null,
4242
) {
43-
$this->config = $config ?: Configuration::getDefaultConfiguration();
44-
$this->client = $client ?: new Client();
4543
$this->serializer = ObjectSerializer::getSerializer();
44+
$this->config = $config ?: Configuration::getDefaultConfiguration();
45+
$this->client = $client ?: new Client([
46+
'base_uri' => $this->config->getHost(),
47+
]);
4648
}
4749

4850
public function getConfig(): Configuration

src/Api/DNSZoneApi.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ public function __construct(
4040
?Configuration $config = null,
4141
?ClientInterface $client = null,
4242
) {
43-
$this->config = $config ?: Configuration::getDefaultConfiguration();
44-
$this->client = $client ?: new Client();
4543
$this->serializer = ObjectSerializer::getSerializer();
44+
$this->config = $config ?: Configuration::getDefaultConfiguration();
45+
$this->client = $client ?: new Client([
46+
'base_uri' => $this->config->getHost(),
47+
]);
4648
}
4749

4850
public function getConfig(): Configuration

src/Api/DomainsAvailabilityApi.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ public function __construct(
4040
?Configuration $config = null,
4141
?ClientInterface $client = null,
4242
) {
43-
$this->config = $config ?: Configuration::getDefaultConfiguration();
44-
$this->client = $client ?: new Client();
4543
$this->serializer = ObjectSerializer::getSerializer();
44+
$this->config = $config ?: Configuration::getDefaultConfiguration();
45+
$this->client = $client ?: new Client([
46+
'base_uri' => $this->config->getHost(),
47+
]);
4648
}
4749

4850
public function getConfig(): Configuration

src/Api/DomainsForwardingApi.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ public function __construct(
4040
?Configuration $config = null,
4141
?ClientInterface $client = null,
4242
) {
43-
$this->config = $config ?: Configuration::getDefaultConfiguration();
44-
$this->client = $client ?: new Client();
4543
$this->serializer = ObjectSerializer::getSerializer();
44+
$this->config = $config ?: Configuration::getDefaultConfiguration();
45+
$this->client = $client ?: new Client([
46+
'base_uri' => $this->config->getHost(),
47+
]);
4648
}
4749

4850
public function getConfig(): Configuration

src/Api/DomainsPortfolioApi.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ public function __construct(
4040
?Configuration $config = null,
4141
?ClientInterface $client = null,
4242
) {
43-
$this->config = $config ?: Configuration::getDefaultConfiguration();
44-
$this->client = $client ?: new Client();
4543
$this->serializer = ObjectSerializer::getSerializer();
44+
$this->config = $config ?: Configuration::getDefaultConfiguration();
45+
$this->client = $client ?: new Client([
46+
'base_uri' => $this->config->getHost(),
47+
]);
4648
}
4749

4850
public function getConfig(): Configuration

0 commit comments

Comments
 (0)