Skip to content

Commit ffbc510

Browse files
author
n.gnato
committed
Prepare new release
1 parent c2655d7 commit ffbc510

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.0.2] - 2025-06-17
11+
1012
### Added
1113
- Path normalizing for trailing slash
1214
- `OPTIONS` Handler prototype support
1315
- Types Exceptions
1416
- Handlers for not found and not allowed cases
15-
- Handler instances support
17+
- Handler instances support in configuration
1618

1719
### Changed
1820
- Constructors arguments order
@@ -22,5 +24,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2224
### Added
2325
- Router, RequestHandlerFactory and FastRoute backed implementation of basics
2426

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

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ $routes = [
1010
// 2. Method-based syntax - two levels configuration
1111
'/api/v1/users/{id}' => [ // Router parse path params and set named arguments to request (method based syntax
1212
'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+
}
1417
],
1518
];
1619

0 commit comments

Comments
 (0)