Skip to content

Commit

Permalink
Merge pull request #3 from wsamoht/laravel-lumen-support
Browse files Browse the repository at this point in the history
Add support for Laravel Lumen framework
  • Loading branch information
Jack-Naughton authored Feb 6, 2018
2 parents eb49798 + 350265d commit 0dee7ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LaravelDarkSkyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ public function boot()
{
$source = dirname(__DIR__).'/config/darksky.php';

$this->publishes([$source => config_path('darksky.php')]);
if ($this->app instanceof LaravelApplication) {
$this->publishes([$source => config_path('darksky.php')]);
} elseif ($this->app instanceof LumenApplication) {
$this->app->configure('darksky');
}

$this->mergeConfigFrom($source, 'darksky');
}
Expand Down

0 comments on commit 0dee7ab

Please sign in to comment.