File tree 3 files changed +17
-14
lines changed
Filter options
tests/DependencyInjection 3 files changed +17
-14
lines changed
Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
3
## 1.1.0 - 2015-12-10
4
+
4
5
* Added support for Symfony ~ 3.0.
5
6
* Fixed deprecation warnings being thrown on Symfony >= 2.6.
6
7
Original file line number Diff line number Diff line change @@ -81,11 +81,21 @@ services:
81
81
` ` `
82
82
## Usage
83
83
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 :
89
99
` ` `
90
100
php app/console container:debug | grep aws
91
101
` ` `
Original file line number Diff line number Diff line change @@ -128,15 +128,7 @@ public function serviceProvider()
128
128
{
129
129
$ services = [];
130
130
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 ) {
140
132
$ clientClass = "Aws \\{$ serviceNamespace }\\{$ serviceNamespace }Client " ;
141
133
$ services []= [
142
134
$ serviceNamespace ,
You can’t perform that action at this time.
0 commit comments