Skip to content

Commit 332f79d

Browse files
author
Graham Campbell
committed
Fix lumen support and cleanup config
1 parent 38ae302 commit 332f79d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/AwsServiceProvider.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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');
27+
if (class_exists('Illuminate\Foundation\Application', false)) {
28+
$this->publishes([$source => config_path('aws.php')], 'config');
29+
}
2830

29-
$this->publishes([
30-
$config => $this->app->make('path.config') . DIRECTORY_SEPARATOR . 'aws.php'
31-
], 'config');
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'];

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