File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ## [ 0.0.2] - 2025-06-17
11
+
10
12
### Added
11
13
- Path normalizing for trailing slash
12
14
- ` OPTIONS ` Handler prototype support
13
15
- Types Exceptions
14
16
- Handlers for not found and not allowed cases
15
- - Handler instances support
17
+ - Handler instances support in configuration
16
18
17
19
### Changed
18
20
- Constructors arguments order
@@ -22,5 +24,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
24
### Added
23
25
- Router, RequestHandlerFactory and FastRoute backed implementation of basics
24
26
25
- [ Unreleased ] : https://github.com/FreeElephants/json-api-dto/compare/0.0.1...HEAD
26
- [ 0.0.1 ] : https://github.com/FreeElephants/json-api-dto/releases/tag/0.0.1
27
+ [ Unreleased ] : https://github.com/FreeElephants/psr-router/compare/0.0.2...HEAD
28
+ [ 0.0.2 ] : https://github.com/FreeElephants/psr-router/releases/tag/0.0.2
29
+ [ 0.0.1 ] : https://github.com/FreeElephants/psr-router/releases/tag/0.0.1
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ $routes = [
10
10
// 2. Method-based syntax - two levels configuration
11
11
'/api/v1/users/{id}' => [ // Router parse path params and set named arguments to request (method based syntax
12
12
'GET' => GetUserHandler::class,
13
- 'PATCH' => UpdateUserHandler::class,
13
+ 'PATCH' => UpdateUserHandler::class,
14
+ 'DELETE' => new class implements \Psr\Http\Server\RequestHandlerInterface {
15
+ // psr handler instance allowed as value too
16
+ }
14
17
],
15
18
];
16
19
You can’t perform that action at this time.
0 commit comments