diff --git a/src/AwsServiceProvider.php b/src/AwsServiceProvider.php index 1eb8e73..3167d17 100644 --- a/src/AwsServiceProvider.php +++ b/src/AwsServiceProvider.php @@ -1,7 +1,9 @@ app instanceof LaravelApplication && $this->app->runningInConsole()) { $this->publishes([$source => config_path('aws.php')]); + } elseif ($this->app instanceof LumenApplication) { + $this->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); });