Skip to content

Commit 0594ccf

Browse files
matthewnessworthyholorhythms
authored andcommitted
Align with suggested laravel config practices (#145)
1 parent 33ea9fd commit 0594ccf

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/AwsServiceProvider.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ class AwsServiceProvider extends ServiceProvider
2727
public function boot()
2828
{
2929
if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
30-
$this->publishes([
31-
dirname(__DIR__).'/config/aws_publish.php' => config_path('aws.php')
32-
]);
30+
$this->publishes(
31+
[__DIR__.'/../config/aws_publish.php' => config_path('aws.php')],
32+
'aws-config'
33+
);
3334
} elseif ($this->app instanceof LumenApplication) {
3435
$this->app->configure('aws');
3536
}
36-
37-
$this->mergeConfigFrom(dirname(__DIR__).'/config/aws_default.php', 'aws');
3837
}
3938

4039
/**
@@ -44,6 +43,11 @@ public function boot()
4443
*/
4544
public function register()
4645
{
46+
$this->mergeConfigFrom(
47+
__DIR__.'/../config/aws_default.php',
48+
'aws'
49+
);
50+
4751
$this->app->singleton('aws', function ($app) {
4852
$config = $app->make('config')->get('aws');
4953

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy