Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 26, 2024
1 parent 44a5a5d commit b92b1c9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Bus/BusServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ protected function registerBatchServices()

if (! empty($config['key']) && ! empty($config['secret'])) {
$dynamoConfig['credentials'] = Arr::only($config, ['key', 'secret']);

if (! empty($config['token'])) {
$dynamoConfig['credentials']['token'] = $config['token'];
}
Expand Down
1 change: 1 addition & 0 deletions src/Illuminate/Cache/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ protected function newDynamodbClient(array $config)
$dynamoConfig['credentials'] = Arr::only(
$config, ['key', 'secret']
);

if (! empty($config['token'])) {
$dynamoConfig['credentials']['token'] = $config['token'];
}
Expand Down
1 change: 1 addition & 0 deletions src/Illuminate/Filesystem/FilesystemManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ protected function formatS3Config(array $config)

if (! empty($config['key']) && ! empty($config['secret'])) {
$config['credentials'] = Arr::only($config, ['key', 'secret']);

if (! empty($config['token'])) {
$config['credentials']['token'] = $config['token'];
}
Expand Down
1 change: 1 addition & 0 deletions src/Illuminate/Mail/MailManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ protected function addSesCredentials(array $config)
{
if (! empty($config['key']) && ! empty($config['secret'])) {
$config['credentials'] = Arr::only($config, ['key', 'secret']);

if (! empty($config['token'])) {
$config['credentials']['token'] = $config['token'];
}
Expand Down
1 change: 1 addition & 0 deletions src/Illuminate/Queue/QueueServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ protected function dynamoFailedJobProvider($config)

if (! empty($config['key']) && ! empty($config['secret'])) {
$dynamoConfig['credentials'] = Arr::only($config, ['key', 'secret']);

if (! empty($config['token'])) {
$dynamoConfig['credentials']['token'] = $config['token'];
}
Expand Down

0 comments on commit b92b1c9

Please sign in to comment.