Skip to content

Commit bb1aefc

Browse files
committed
Laravel version bug fixed and README updated
Signed-off-by: Aykut Farsak <[email protected]>
1 parent 53e5426 commit bb1aefc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Create a new `app/config/aws.php` configuration file with the following options:
3131
return array(
3232
'key' => '<your-aws-access-key-id>',
3333
'secret' => '<your-aws-secret-access-key>',
34-
'region' => Region::US_WEST_2,
34+
'region' => Aws\Common\Enum\Region::US_WEST_2,
3535
);
3636
```
3737

src/Aws/Laravel/AwsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function register()
4444
$clientConfig = $event['client']->getConfig();
4545
$commandParams = $clientConfig->get(Client::COMMAND_PARAMS) ?: array();
4646
$clientConfig->set(Client::COMMAND_PARAMS, array_merge_recursive($commandParams, array(
47-
UserAgentListener::OPTION => 'Laravel/' . Application::VERSION,
47+
UserAgentListener::OPTION => 'Laravel' . ( defined('Application::VERSION') ? '/' . Application::VERSION : '' ),
4848
)));
4949
});
5050

0 commit comments

Comments
 (0)