File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Find the `providers` key in `app/config/app.php` and register the AWS Service Pr
44
44
)
45
45
```
46
46
47
- Find the ` aliases ` key in ` app/config/app.php ` and add the AWS Facade alias.
47
+ Find the ` aliases ` key in ` app/config/app.php ` and add the AWS facade alias.
48
48
49
49
``` php
50
50
'aliases' => array(
@@ -53,7 +53,6 @@ Find the `aliases` key in `app/config/app.php` and add the AWS Facade alias.
53
53
)
54
54
```
55
55
56
-
57
56
### 2. Manual Instantiation
58
57
59
58
You can also register the provider and configuration options at runtime. This could be done in your global bootstrapping
@@ -80,8 +79,8 @@ $app->register(new AwsServiceProvider($app), array(
80
79
));
81
80
```
82
81
83
- You can alternatively specify the path to an AWS config file (see [ AWS SDK for PHP
84
- ] ( http://github.com/aws/aws-sdk-php ) for details about how to format this type of file).
82
+ You can alternatively specify the path to an AWS config file (see [ AWS SDK for PHP] ( http://github.com/aws/aws-sdk-php )
83
+ for details about how to format this type of file).
85
84
86
85
``` php
87
86
$app->register(new AwsServiceProvider($app), array('config' => array('aws' => '/path/to/aws/config/file.php')));
Original file line number Diff line number Diff line change @@ -28,5 +28,8 @@ class AwsFacade extends Facade
28
28
*
29
29
* @return string
30
30
*/
31
- protected static function getFacadeAccessor () { return 'aws ' ; }
31
+ protected static function getFacadeAccessor ()
32
+ {
33
+ return 'aws ' ;
34
+ }
32
35
}
Original file line number Diff line number Diff line change @@ -29,21 +29,14 @@ public function testFacadeCanBeResolvedToServiceInstance()
29
29
{
30
30
// Setup the Laravel app and AWS service provider
31
31
$ app = new Application ();
32
+ $ app ['config ' ] = array ();
32
33
$ provider = new AwsServiceProvider ($ app );
33
- $ app ->register ($ provider , array (
34
- 'config ' => array (
35
- 'aws ' => array (
36
- 'key ' => 'your-aws-access-key-id ' ,
37
- 'secret ' => 'your-aws-secret-access-key ' ,
38
- ),
39
- ),
40
- ));
34
+ $ app ->register ($ provider );
41
35
$ provider ->boot ();
42
36
43
37
AWS ::setFacadeApplication ($ app );
44
38
45
39
// Get an instance of a client (S3) to use for testing
46
- /** @var $s3 \Aws\S3\S3Client */
47
40
$ s3 = AWS ::get ('s3 ' );
48
41
$ this ->assertInstanceOf ('Aws\S3\S3Client ' , $ s3 );
49
42
}
You can’t perform that action at this time.
0 commit comments