File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1- <?php return [
1+ <?php
2+
3+ return [
24
35 /*
46 |--------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ class AwsServiceProvider extends ServiceProvider {
2222 */
2323 public function boot ()
2424 {
25- $ config = realpath (__DIR__ . '/../config/config .php ' );
25+ $ source = realpath (__DIR__ . '/../config/aws .php ' );
2626
27- $ this ->mergeConfigFrom ($ config , 'aws ' );
28-
29- if (function_exists ('config_path ' )) {
30- $ this ->publishes ([$ config => config_path ('aws.php ' )], 'config ' );
27+ if (class_exists ('Illuminate\Foundation\Application ' , false )) {
28+ $ this ->publishes ([$ source => config_path ('aws.php ' )]);
3129 }
30+
31+ $ this ->mergeConfigFrom ($ source , 'aws ' );
3232 }
3333
3434 /**
@@ -39,7 +39,6 @@ public function boot()
3939 public function register ()
4040 {
4141 $ this ->app ->singleton ('aws ' , function ($ app ) {
42- // Retrieve config.
4342 $ config = $ app ['config ' ]->get ('aws ' );
4443 if (isset ($ config ['config_file ' ])) {
4544 $ config = $ config ['config_file ' ];
You can’t perform that action at this time.
0 commit comments