Skip to content

Commit e228f45

Browse files
committed
Fixed config typo.
By default, php artisan vendor:publish should work fine in Laravel 5 applications. Lumen users may create onesignal config file manually.
1 parent 437b2b5 commit e228f45

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

config/onesignal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
|
2020
*/
2121
'rest_api_key' => 'YOUR-REST-API-KEY-HERE',
22-
'user_auth_key' => 'YOUR-'
22+
'user_auth_key' => 'YOUR-USER-AUTH-KEY'
2323
);

src/OneSignalServiceProvider.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ class OneSignalServiceProvider extends ServiceProvider
1414
public function boot()
1515
{
1616
$configPath = __DIR__ . '/../config/onesignal.php';
17-
$app = $this->app;
18-
19-
if (class_exists('Illuminate\Foundation\Application') && $app instanceof LaravelApplication && $app->runningInConsole()) {
20-
$this->publishes([$configPath => config_path('onesignal.php')]);
21-
$this->mergeConfigFrom($configPath, 'onesignal');
22-
} else if ( class_exists('Laravel\Lumen\Application', false) ) {
23-
$app->configure('onesignal');
17+
18+
$this->publishes([$configPath => config_path('onesignal.php')]);
19+
$this->mergeConfigFrom($configPath, 'onesignal');
20+
21+
if ( class_exists('Laravel\Lumen\Application') ) {
22+
$this->app->configure('onesignal');
2423
}
2524
}
2625

0 commit comments

Comments
 (0)