Skip to content

Commit

Permalink
drop lumen support
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Mar 7, 2024
1 parent 6dbb3b4 commit 4a3a46b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/MollieServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
namespace Mollie\Laravel;

use Illuminate\Contracts\Container\Container;
use Illuminate\Foundation\Application as LaravelApplication;
use Illuminate\Support\ServiceProvider;
use Laravel\Lumen\Application as LumenApplication;
use Mollie\Api\MollieApiClient;
use Mollie\Laravel\Wrappers\MollieApiWrapper;

Expand Down Expand Up @@ -68,11 +66,8 @@ protected function setupConfig()
{
$source = realpath(__DIR__ . '/../config/mollie.php');

// Check if the application is a Laravel OR Lumen instance to properly merge the configuration file.
if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
if ($this->app->runningInConsole()) {
$this->publishes([$source => config_path('mollie.php')]);
} elseif ($this->app instanceof LumenApplication) {
$this->app->configure('mollie');
}

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

0 comments on commit 4a3a46b

Please sign in to comment.