Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ jobs:
uses: ./.github/workflows/laravel.yml
with:
php-versions: '8.2,8.3,8.4,8.5'
call-lumen:
uses: ./.github/workflows/lumen.yml
with:
php-versions: '8.2,8.3,8.4,8.5'
call-slim:
uses: ./.github/workflows/slim.yml
with:
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/lumen.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ composer.lock
vendor/
tests/storage/
tests/*/openapi.yaml
/.claude/settings.local.json
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Allows to (re-)use [Swagger-PHP](https://github.com/zircote/swagger-php) attribu
to configure routes in the following frameworks:

* [Laravel](https://github.com/laravel/laravel)
* [Lumen](https://github.com/laravel/lumen)
* [Slim](https://github.com/slimphp/Slim)


Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"php": ">=8.2",
"psr/log": "^1.1 || ^2.0 || ^3.0",
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0",
"radebatz/openapi-extras": "^3.0 || ^4.0",
"radebatz/openapi-extras": "^4.2",
"zircote/swagger-php": "^4.11.1 || ^5.0.2 || ^6.0"
},
"require-dev": {
Expand Down
4 changes: 0 additions & 4 deletions src/Adapters/LaravelRoutingAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public function __construct(Application $app, array $options = [])
$this->app = $app;
$this->options = array_merge([
static::OPTION_AUTO_REGEX => true,
static::OPTION_NAMESPACE => 'App\\Http\\Controllers\\',
], $options);
}

Expand Down Expand Up @@ -55,9 +54,6 @@ public function register(Operation $operation, string $controller, array $parame
}

$controller = str_replace('::__invoke', '', $controller);
if ($namespace = $this->options[static::OPTION_NAMESPACE]) {
$controller = str_replace($namespace, '', $controller);
}

/** @var Router $router */
$router = $this->app->get('router');
Expand Down
85 changes: 0 additions & 85 deletions src/Adapters/LumenRoutingAdapter.php

This file was deleted.

1 change: 0 additions & 1 deletion src/RoutingAdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ interface RoutingAdapterInterface
public const X_NAME = 'name';
public const X_MIDDLEWARE = 'middleware';

public const OPTION_NAMESPACE = 'namespace';
public const OPTION_AUTO_REGEX = 'autoregex';

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Laravel/LaravelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ public function attributesMiddleware()
$route = $this->getRouter()->getRoutes()->getByName('attributes');

$this->assertNotNull($route);
$this->assertEquals([BarMiddleware::class, FooMiddleware::class], $route->gatherMiddleware());
$this->assertSame([FooMiddleware::class, BarMiddleware::class], $route->gatherMiddleware());
}
}
58 changes: 0 additions & 58 deletions tests/Lumen/CallsApplicationTrait.php

This file was deleted.

51 changes: 0 additions & 51 deletions tests/Lumen/LumenTest.php

This file was deleted.

13 changes: 0 additions & 13 deletions tests/Lumen/LumenTestCase.php

This file was deleted.

58 changes: 0 additions & 58 deletions tests/Lumen/ParametersTest.php

This file was deleted.