Skip to content

Commit 9a966b3

Browse files
committed
Merge pull request aws#74 from GrahamCampbell/patch-1
Fix lumen support and cleanup config
2 parents 38ae302 + 3fdecda commit 9a966b3

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

config/config.php renamed to config/aws.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php return [
1+
<?php
2+
3+
return [
24

35
/*
46
|--------------------------------------------------------------------------

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')]);
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