Skip to content

Commit

Permalink
Remove lumen support (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Oct 1, 2023
1 parent 07602c9 commit 6a8ab36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
8 changes: 1 addition & 7 deletions src/HashidsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

use Hashids\Hashids;
use Illuminate\Contracts\Container\Container;
use Illuminate\Foundation\Application as LaravelApplication;
use Illuminate\Support\ServiceProvider;
use Laravel\Lumen\Application as LumenApplication;

class HashidsServiceProvider extends ServiceProvider
{
Expand All @@ -30,11 +28,7 @@ protected function setupConfig(): void
{
$source = realpath($raw = __DIR__ . '/../config/hashids.php') ?: $raw;

if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
$this->publishes([$source => config_path('hashids.php')]);
} elseif ($this->app instanceof LumenApplication) {
$this->app->configure('hashids');
}
$this->publishes([$source => config_path('hashids.php')]);

$this->mergeConfigFrom($source, 'hashids');
}
Expand Down
6 changes: 0 additions & 6 deletions tests/AnalysisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
namespace Vinkla\Tests\Hashids;

use GrahamCampbell\Analyzer\AnalysisTrait;
use Laravel\Lumen\Application;
use PHPUnit\Framework\TestCase;

class AnalysisTest extends TestCase
Expand All @@ -29,9 +28,4 @@ protected static function getPaths(): array
realpath(__DIR__),
];
}

protected function getIgnored(): array
{
return [Application::class];
}
}

0 comments on commit 6a8ab36

Please sign in to comment.