Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e545f34

Browse filesBrowse files
committed
Document service naming patterns. Resolves symfony#14
1 parent ca212c6 commit e545f34
Copy full SHA for e545f34

File tree

3 files changed

+17
-14
lines changed
Filter options

3 files changed

+17
-14
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# CHANGELOG
22

33
## 1.1.0 - 2015-12-10
4+
45
* Added support for Symfony ~3.0.
56
* Fixed deprecation warnings being thrown on Symfony >= 2.6.
67

‎README.md

Copy file name to clipboardExpand all lines: README.md
+15-5Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,21 @@ services:
8181
```
8282
## Usage
8383
84-
This bundle exposes an instance of the `Aws\Sdk` object as well as instances of
85-
each AWS client object as services to your symfony application. The services
86-
made available depends on which version of the SDK is installed. To view them,
87-
run the following command from your application's root directory:
88-
84+
This bundle exposes an instance of the `Aws\Sdk` object as well as instances of
85+
each AWS client object as services to your symfony application. They are name
86+
`aws.{$namespace}`, where `$namespace` is the namespace of the service client.
87+
For instance:
88+
89+
Service | Instance Of
90+
--- | ---
91+
aws.dynamodb | Aws\DynamoDb\DynamoDbClient
92+
aws.ec2 | Aws\Ec2\Ec2Client
93+
aws.s3 | Aws\S3\S3Client
94+
aws_sdk | Aws\Sdk
95+
96+
The services made available depends on which version of the SDK is installed. To
97+
view a full list, run the following command from your application's root
98+
directory:
8999
```
90100
php app/console container:debug | grep aws
91101
```

‎tests/DependencyInjection/AwsExtensionTest.php

Copy file name to clipboardExpand all lines: tests/DependencyInjection/AwsExtensionTest.php
+1-9Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,7 @@ public function serviceProvider()
128128
{
129129
$services = [];
130130

131-
$awsRoot = dirname((new ReflectionClass(Sdk::class))->getFileName());
132-
$manifestFile = implode(DIRECTORY_SEPARATOR, [$awsRoot, 'data', 'manifest.json']);
133-
134-
$this->assertFileExists($manifestFile);
135-
136-
$manifest = json_decode(file_get_contents($manifestFile), true);
137-
$namespaces = array_column($manifest, 'namespace');
138-
139-
foreach ($namespaces as $serviceNamespace) {
131+
foreach (array_column(\Aws\manifest(), 'namespace') as $serviceNamespace) {
140132
$clientClass = "Aws\\{$serviceNamespace}\\{$serviceNamespace}Client";
141133
$services []= [
142134
$serviceNamespace,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.