v1.4.2
This commit is contained in:
parent
6a8de6e2e2
commit
a80a4aa4f9
1 changed files with 3186001 additions and 9155 deletions
37
vendor/aws/aws-sdk-php/build/build-service.php
vendored
Normal file
37
vendor/aws/aws-sdk-php/build/build-service.php
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
require __DIR__ . '/ServiceBuilder.php';
|
||||
|
||||
$options = getopt('', [
|
||||
'namespace:',
|
||||
'model:',
|
||||
'clientPath:',
|
||||
'exceptionPath:'
|
||||
]);
|
||||
|
||||
if (empty($options['namespace']) || empty($options['model'])) {
|
||||
throw new LogicException(
|
||||
"You must specify a namespace (--namespace=) and path to an api model "
|
||||
. "(--model=) to build a service"
|
||||
);
|
||||
}
|
||||
|
||||
$options['model'] = \Aws\load_compiled_json($options['model']);
|
||||
$options['namespace'] = ucfirst($options['namespace']);
|
||||
|
||||
$options += [
|
||||
'clientPath' => dirname(__DIR__)
|
||||
. "/src/{$options['namespace']}/{$options['namespace']}Client.php",
|
||||
'exceptionPath' => dirname(__DIR__)
|
||||
. "/src/{$options['namespace']}/Exception/{$options['namespace']}Exception.php",
|
||||
];
|
||||
|
||||
(new ServiceBuilder(
|
||||
$options['namespace'],
|
||||
$options['model'],
|
||||
$options['clientPath'],
|
||||
$options['exceptionPath']
|
||||
))
|
||||
->buildClient()
|
||||
->buildException();
|
||||
Loading…
Reference in a new issue