OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
aws-ses
/
vendor
/
aws
/
aws-sdk-php
/
build
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2024 10:51:40 AM
rwxr-xr-x
📄
Burgomaster.php
13.48 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
ClassAnnotationUpdater.php
3.3 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
ClientAnnotator.php
4.57 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
JsonCompiler.php
2.48 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
PhpFileLinterTrait.php
1.44 KB
08/14/2024 10:51:13 AM
rw-r--r--
📄
ServiceBuilder.php
1.85 KB
08/14/2024 10:51:13 AM
rw-r--r--
📄
annotate-client-locator.php
1.04 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
annotate-clients.php
2.74 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
aws-clear-cache.php
91 bytes
08/14/2024 10:51:12 AM
rw-r--r--
📄
build-manifest.php
3.57 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
build-redirect-map.php
343 bytes
08/14/2024 10:51:12 AM
rw-r--r--
📄
build-service.php
1015 bytes
08/14/2024 10:51:12 AM
rw-r--r--
📁
changelog
-
08/14/2024 10:51:39 AM
rwxr-xr-x
📄
compile-json.php
447 bytes
08/14/2024 10:51:12 AM
rw-r--r--
📁
docs
-
08/14/2024 10:56:09 AM
rwxr-xr-x
📄
docs.php
1.72 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
gh-release.php
6.01 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
normalize-docs-files.php
7.74 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
option-docs.php
1.21 KB
08/14/2024 10:51:12 AM
rw-r--r--
📄
packager.php
2.2 KB
08/14/2024 10:51:13 AM
rw-r--r--
📄
phar-test-runner.php
161 bytes
08/14/2024 10:51:13 AM
rw-r--r--
📄
remove-method-annotations.php
1.4 KB
08/14/2024 10:51:13 AM
rw-r--r--
📄
test-phar.php
1.05 KB
08/14/2024 10:51:13 AM
rw-r--r--
Editing: ServiceBuilder.php
Close
<?php class ServiceBuilder { private $namespace; private $model; private $clientPath; private $exceptionPath; public function __construct( $namespace, array $model, $clientPath, $exceptionPath ) { $this->namespace = $namespace; $this->model = $model; $this->clientPath = $clientPath; $this->exceptionPath = $exceptionPath; } public function buildClient() { return $this->buildFileIfMissing('Client'); } public function buildException() { return $this->buildFileIfMissing('Exception'); } private function buildFileIfMissing($fileType) { $property = lcfirst($fileType) . 'Path'; $method = 'generateDefault' . $fileType; if (!file_exists($this->{$property})) { if (!is_dir(dirname($this->{$property}))) { mkdir(dirname($this->{$property}), 0755, true); } file_put_contents($this->{$property}, $this->{$method}(), LOCK_EX); } return $this; } private function getFullName() { return $this->model['metadata']['serviceFullName']; } private function generateDefaultClient() { return <<<EOPHP <?php namespace Aws\\{$this->namespace}; use Aws\\AwsClient; /** * This client is used to interact with the **{$this->getFullName()}** service. */ class {$this->namespace}Client extends AwsClient {} EOPHP; } private function generateDefaultException() { return <<<EOPHP <?php namespace Aws\\{$this->namespace}\\Exception; use Aws\\Exception\\AwsException; /** * Represents an error interacting with the **{$this->getFullName()}** service. */ class {$this->namespace}Exception extends AwsException {} EOPHP; } }