File tree 5 files changed +46
-5
lines changed
5 files changed +46
-5
lines changed Original file line number Diff line number Diff line change
1
+ # Change Log
2
+
3
+ ## 0.1.1
4
+
5
+ ### Added
6
+
7
+ - Support for async-aws/core: ^0.2
8
+ - Support for CloudFormation, Lambda and SNS
9
+
10
+ ### Fixed
11
+
12
+ - Configuration bug where you specified ` async_aws.client: ` and nothing more
13
+
14
+ ## 0.1.0
15
+
16
+ First version
Original file line number Diff line number Diff line change @@ -44,8 +44,12 @@ public function getConfigTreeBuilder()
44
44
return $ treeBuilder ;
45
45
}
46
46
47
- private static function validateType (array $ clients )
47
+ private static function validateType (? array $ clients )
48
48
{
49
+ if (null === $ clients ) {
50
+ return [];
51
+ }
52
+
49
53
$ awsServices = AwsPackagesProvider::getServiceNames ();
50
54
foreach ($ clients as $ name => $ config ) {
51
55
if (\in_array ($ name , $ awsServices )) {
Original file line number Diff line number Diff line change @@ -75,6 +75,18 @@ public function testNotRegisterServices()
75
75
self ::assertFalse ($ container ->has (SqsClient::class));
76
76
}
77
77
78
+ public function testEmptyClientsKey ()
79
+ {
80
+ $ kernel = $ this ->createKernel ();
81
+ $ kernel ->addConfigFile (__DIR__ . '/Resources/config/empty_clients_key.yaml ' );
82
+ $ this ->bootKernel ();
83
+
84
+ $ container = $ this ->getContainer ();
85
+ self ::assertTrue ($ container ->has ('async_aws.client.s3 ' ));
86
+ self ::assertTrue ($ container ->has ('async_aws.client.sqs ' ));
87
+ self ::assertTrue ($ container ->has (SqsClient::class));
88
+ }
89
+
78
90
public function testNotRegisterSqs ()
79
91
{
80
92
$ kernel = $ this ->createKernel ();
Original file line number Diff line number Diff line change
1
+ framework :
2
+ router :
3
+ utf8 : true
4
+
5
+ async_aws :
6
+ config :
7
+ region : eu-central-1
8
+
9
+ clients :
Original file line number Diff line number Diff line change 11
11
"license" : " MIT" ,
12
12
"require" : {
13
13
"php" : " ^7.2.5" ,
14
- "async-aws/core" : " ^0.1.0 " ,
14
+ "async-aws/core" : " ^0.1 || ^0.2 " ,
15
15
"symfony/config" : " ^4.4 || ^5.0" ,
16
16
"symfony/dependency-injection" : " ^4.4 || ^5.0" ,
17
17
"symfony/http-kernel" : " ^4.4 || ^5.0"
18
18
},
19
19
"require-dev" : {
20
- "async-aws/s3" : " ^0.1" ,
21
- "async-aws/ses" : " ^0.1" ,
22
- "async-aws/sqs" : " ^0.1" ,
20
+ "async-aws/s3" : " ^0.1 || ^0.2 " ,
21
+ "async-aws/ses" : " ^0.1 || ^0.2 " ,
22
+ "async-aws/sqs" : " ^0.1 || ^0.2 " ,
23
23
"matthiasnoback/symfony-config-test" : " ^4.1" ,
24
24
"nyholm/symfony-bundle-test" : " ^1.6.1"
25
25
},
You can’t perform that action at this time.
0 commit comments