From 6643e8e7dd44da18724aadd52160fda3a3b82c59 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 16 Jan 2016 10:45:28 +0000 Subject: [PATCH 1/2] Fixed lumen support --- src/AwsServiceProvider.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/AwsServiceProvider.php b/src/AwsServiceProvider.php index 1eb8e73..27fbe21 100644 --- a/src/AwsServiceProvider.php +++ b/src/AwsServiceProvider.php @@ -1,7 +1,9 @@ app instanceof LaravelApplication && $app->runningInConsole()) { $this->publishes([$source => config_path('aws.php')]); + } elseif ($this->app instanceof LumenApplication) { + $app->configure('aws'); } $this->mergeConfigFrom($source, 'aws'); @@ -41,7 +45,8 @@ public function boot() public function register() { $this->app->singleton('aws', function ($app) { - $config = $app['config']->get('aws'); + $config = $app->make('config')->get('aws'); + return new Sdk($config); }); From 11fd1a77cf4108bf53ed044ac6c1ec92867d1307 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 16 Jan 2016 20:31:01 +0000 Subject: [PATCH 2/2] Fixed typos --- src/AwsServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AwsServiceProvider.php b/src/AwsServiceProvider.php index 27fbe21..3167d17 100644 --- a/src/AwsServiceProvider.php +++ b/src/AwsServiceProvider.php @@ -28,10 +28,10 @@ public function boot() { $source = realpath(__DIR__ . '/../config/aws.php'); - if ($this->app instanceof LaravelApplication && $app->runningInConsole()) { + if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { $this->publishes([$source => config_path('aws.php')]); } elseif ($this->app instanceof LumenApplication) { - $app->configure('aws'); + $this->app->configure('aws'); } $this->mergeConfigFrom($source, 'aws');