Skip to content

Commit 9c8c539

Browse files
committed
Now serializes geoip settings when updating
1 parent 3cc7803 commit 9c8c539

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Loadbalancers/ListenerClient.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ public function getEntityMap()
5555
return []; // needs to be empty so we can do custom hydration logic
5656
}
5757

58+
public function friendlyToApi($item, $map)
59+
{
60+
$raw = parent::friendlyToApi($item, $map);
61+
if (isset($item['geoip'])) {
62+
$rawGeoIp = $this->friendlyToApi($item['geoip'], self::GEOIP_MAP);
63+
$raw['geoip'] = $rawGeoIp;
64+
}
65+
66+
return $raw;
67+
}
68+
5869
/**
5970
* Gets a page of Binds
6071
*

0 commit comments

Comments
 (0)