From 0c8af4992cb0f7589dcafaad65ada12753c64594 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Nov 2022 21:14:33 +0300 Subject: initial --- .../src/Route53/Exception/Route53Exception.php | 9 ++ .../aws/aws-sdk-php/src/Route53/Route53Client.php | 180 +++++++++++++++++++++ 2 files changed, 189 insertions(+) create mode 100644 vendor/aws/aws-sdk-php/src/Route53/Exception/Route53Exception.php create mode 100644 vendor/aws/aws-sdk-php/src/Route53/Route53Client.php (limited to 'vendor/aws/aws-sdk-php/src/Route53') diff --git a/vendor/aws/aws-sdk-php/src/Route53/Exception/Route53Exception.php b/vendor/aws/aws-sdk-php/src/Route53/Exception/Route53Exception.php new file mode 100644 index 0000000..5a0ace2 --- /dev/null +++ b/vendor/aws/aws-sdk-php/src/Route53/Exception/Route53Exception.php @@ -0,0 +1,9 @@ +getHandlerList()->appendInit($this->cleanIdFn(), 'route53.clean_id'); + } + + private function cleanIdFn() + { + return function (callable $handler) { + return function (CommandInterface $c, RequestInterface $r = null) use ($handler) { + foreach (['Id', 'HostedZoneId', 'DelegationSetId'] as $clean) { + if ($c->hasParam($clean)) { + $c[$clean] = $this->cleanId($c[$clean]); + } + } + return $handler($c, $r); + }; + }; + } + + private function cleanId($id) + { + static $toClean = ['/hostedzone/', '/change/', '/delegationset/']; + + return str_replace($toClean, '', $id); + } +} -- cgit v1.2.3