Skip to content

Commit 316c507

Browse files
committed
Merge branch '4.0'
2 parents 42b8789 + a32bbc5 commit 316c507

2 files changed

Lines changed: 22 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### 4.0.1 <small>(2026-01-05)</small>
2+
3+
#### Bugfixes
4+
5+
* Fixed bug when generating cached routes with a relative path to the spec file.
6+
7+
--------------------------------------------------------
8+
19
### 4.0.0 <small>(2026-01-05)</small>
210

311
#### New
@@ -46,7 +54,7 @@
4654

4755
### 2.2.1 <small>(2024-10-29)</small>
4856

49-
#### Fixed
57+
#### Bugfixes
5058

5159
* Ensure that the Swagger UI docs work if "clean URLs" are disabled.
5260

@@ -73,7 +81,7 @@
7381

7482
* Now possible to specify the OpenApi version when generating the spec (3.0.0 or 3.1.0).
7583

76-
#### Fixed
84+
#### Bugfixes
7785

7886
* The spec generator now supports the new Mako 10 directory structure as well as the legacy structure.
7987

@@ -89,31 +97,31 @@
8997

9098
### 1.2.4 <small>(2023-04-18)</small>
9199

92-
#### Fixed
100+
#### Bugfixes
93101

94102
* A format is no longer required for integers.
95103

96104
--------------------------------------------------------
97105

98106
### 1.2.3 <small>(2023-02-15)</small>
99107

100-
#### Fixed
108+
#### Bugfixes
101109

102110
* It is now possible to specify the output path of the generated route file.
103111

104112
--------------------------------------------------------
105113

106114
### 1.2.2 <small>(2023-01-31)</small>
107115

108-
#### Fixed
116+
#### Bugfixes
109117

110118
* Parameters are now supported on both the path level and the operation level.
111119

112120
--------------------------------------------------------
113121

114122
### 1.2.1 <small>(2023-01-27)</small>
115123

116-
#### Fixed
124+
#### Bugfixes
117125

118126
* The `OpenApiTrait::getRouteName()` method now supports invokable classes.
119127

@@ -130,7 +138,7 @@
130138

131139
### 1.1.1 <small>(2023-01-26)</small>
132140

133-
#### Fixed
141+
#### Bugfixes
134142

135143
* Only base route parameter patterns on path parameters.
136144

@@ -144,7 +152,7 @@
144152
- `OpenApiTrait::getRouteName()`
145153
* Added experimental support for route parameter patterns based on parameter formats.
146154

147-
#### Fixed
155+
#### Bugfixes
148156

149157
* Path parameters are parsed on path level instead of on request method level.
150158

src/console/commands/GenerateRoutes.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use mako\reactor\Command;
1919

2020
use function pathinfo;
21+
use function realpath;
2122
use function rtrim;
2223

2324
/**
@@ -48,7 +49,11 @@ public function __construct(
4849
*/
4950
protected function getInputFilePath(?string $input): string
5051
{
51-
return $input ?? $this->app->getPath() . '/http/routing/openapi.yaml';
52+
if ($input) {
53+
return realpath($input);
54+
}
55+
56+
return $this->app->getPath() . '/http/routing/openapi.yaml';
5257
}
5358

5459
/**

0 commit comments

Comments
 (0)