/** * Setup the config. * * @param \Illuminate\Contracts\Foundation\Application $app * * @return void */ protected function setupConfig(Application $app) { $source = realpath(__DIR__ . '/../config/oauth2.php'); if ($app instanceof LaravelApplication && $app->runningInConsole()) { $this->publishes([$source => config_path('oauth2.php')]); } elseif ($app instanceof LumenApplication) { $app->configure('oauth2'); } $this->mergeConfigFrom($source, 'oauth2'); }
/** * Setup the config. * * @param \Illuminate\Contracts\Foundation\Application $app * * @return void */ protected function setupConfig(Application $app) { $source = realpath(__DIR__ . '/../config/pusher.php'); if (class_exists('Illuminate\\Foundation\\Application', false) && $app->runningInConsole()) { $this->publishes([$source => config_path('pusher.php')]); } elseif (class_exists('Laravel\\Lumen\\Application', false)) { $app->configure('pusher'); } $this->mergeConfigFrom($source, 'pusher'); }