From bae8d23bb19edd09842137769769fe5eb107949d Mon Sep 17 00:00:00 2001 From: Jeremy Lindblom Date: Wed, 10 Jun 2015 10:56:34 -0700 Subject: [PATCH 1/2] Updated composer.json for 2.0 version to lock to Laravel 5.0.* --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 8e93832..a3cbbda 100644 --- a/composer.json +++ b/composer.json @@ -14,10 +14,10 @@ "require": { "php": ">=5.4.0", "aws/aws-sdk-php": "~2.4", - "illuminate/support": "~5.0" + "illuminate/support": "5.0.*" }, "require-dev": { - "laravel/framework": "~5.0", + "laravel/framework": "5.0.*", "phpunit/phpunit": "~4.0" }, "autoload": { From 847124c95d2ba4da9930ffdc8672be9e0d069220 Mon Sep 17 00:00:00 2001 From: Jeremy Lindblom Date: Wed, 10 Jun 2015 11:53:06 -0700 Subject: [PATCH 2/2] Making compatible with Lumen by not publishing the config if config_path not defined. --- src/AwsServiceProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AwsServiceProvider.php b/src/AwsServiceProvider.php index 91a235f..abe3300 100644 --- a/src/AwsServiceProvider.php +++ b/src/AwsServiceProvider.php @@ -26,9 +26,9 @@ public function boot() $this->mergeConfigFrom($config, 'aws'); - $this->publishes([ - $config => $this->app->make('path.config') . DIRECTORY_SEPARATOR . 'aws.php' - ], 'config'); + if (function_exists('config_path')) { + $this->publishes([$config => config_path('aws.php')], 'config'); + } } /**