Skip to content

Commit

Permalink
1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vpratfr authored Dec 10, 2019
1 parent 8ef79d2 commit 413519f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/DiscordLogger/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ class ServiceProvider extends BaseServiceProvider
/** @return void */
public function register()
{
$this->mergeConfigFrom(__DIR__ . '/../../config/discord-logger.php', 'discord-logger');
if (!str_contains($this->app->version(), 'Lumen')) {
$this->mergeConfigFrom(__DIR__ . '/../../config/discord-logger.php', 'discord-logger');
}
$this->registerContainerBindings();
}

/** @return void */
public function boot()
{
$this->publishes([__DIR__ . '/../../config/discord-logger.php' => config_path('discord-logger.php')], 'config');
if (str_contains($this->app->version(), 'Lumen')) {
$this->app->configure('discord-logger');
} else {
$this->publishes([__DIR__ . '/../../config/discord-logger.php' => config_path('discord-logger.php')], 'config');
}
}

protected function registerContainerBindings(): void
Expand Down

0 comments on commit 413519f

Please sign in to comment.