Skip to content

Commit e545f34

Browse files
committed
Document service naming patterns. Resolves symfony#14
1 parent ca212c6 commit e545f34

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

CHANGELOG.md

Lines 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

Lines 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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy