diff --git a/src/InstagramServiceProvider.php b/src/InstagramServiceProvider.php index 066860a..fad10a7 100644 --- a/src/InstagramServiceProvider.php +++ b/src/InstagramServiceProvider.php @@ -29,20 +29,24 @@ class InstagramServiceProvider extends ServiceProvider */ public function boot() { - $this->setupConfig(); + $this->setupConfig($this->app); } /** * Setup the config. * + * @param \Illuminate\Contracts\Foundation\Application $app + * * @return void */ - protected function setupConfig() + protected function setupConfig(Application $app) { $source = realpath(__DIR__.'/../config/instagram.php'); if (class_exists('Illuminate\Foundation\Application', false)) { $this->publishes([$source => config_path('instagram.php')]); + } elseif (class_exists('Laravel\Lumen\Application', false)) { + $app->configure('instagram'); } $this->mergeConfigFrom($source, 'instagram');