From 56d71ad2e1a32215d3c445329a5695d2c65ad3a9 Mon Sep 17 00:00:00 2001 From: SergkeiM Date: Tue, 28 Jul 2026 14:53:15 +0300 Subject: [PATCH] Drop Lumen support Removes the configuration logic and related imports for Laravel Lumen. Lumen is a discontinued framework and the associated code path is no longer relevant or testable, simplifying the codebase. --- src/CloudflareServiceProvider.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/CloudflareServiceProvider.php b/src/CloudflareServiceProvider.php index 1c66f13..83e7466 100644 --- a/src/CloudflareServiceProvider.php +++ b/src/CloudflareServiceProvider.php @@ -5,7 +5,6 @@ use Illuminate\Contracts\Container\Container; use Illuminate\Foundation\Application as LaravelApplication; use Illuminate\Support\ServiceProvider; -use Laravel\Lumen\Application as LumenApplication; class CloudflareServiceProvider extends ServiceProvider { @@ -31,14 +30,6 @@ private function setupConfig(): void if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { $this->publishes([$source => $this->app->configPath('cloudflare.php')]); } - // @codeCoverageIgnoreStart - // Lumen is discontinued and not an installed dependency here (only - // referenced for interface compatibility); this branch cannot be - // exercised without adding a dependency on an abandoned framework. - elseif ($this->app instanceof LumenApplication) { - $this->app->configure('cloudflare'); - } - // @codeCoverageIgnoreEnd $this->mergeConfigFrom($source, 'cloudflare'); }