File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,15 @@ Dotkernel API is an alternative for legacy Laminas API Tools (formerly Apigility
1010
1111Documentation is available at: https://docs.dotkernel.org/api-documentation/
1212
13+ ## Version History
14+
15+ | Branch | Release | PSR-11 | OSS Lifecycle | PHP Version |
16+ | --------| ----------| --------| --------------------------------------------------------------------------------------------------------------------------------------| -----------------------------------------------------------------------------------------------------|
17+ | 6.0 | ` >= 6.0 ` | 1 | ![ OSS Lifecycle] ( https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F6.0%2FOSSMETADATA ) | ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/api/6.1.0 ) |
18+ | 5.0 | ` < 6.0 ` | 1 | ![ OSS Lifecycle] ( https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F5.0%2FOSSMETADATA ) | ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/api/5.3.0 ) |
19+ | 4.0 | ` < 5.0 ` | 1 | ![ OSS Lifecycle] ( https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F4.0%2FOSSMETADATA ) | ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/api/4.5.0 ) |
20+ | 3.0 | ` < 4.0 ` | 1 | ![ OSS Lifecycle] ( https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F3.0%2FOSSMETADATA ) | ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/api/3.0.4 ) |
21+
1322## Badges
1423
1524![ OSS Lifecycle] ( https://img.shields.io/osslifecycle/dotkernel/api )
Original file line number Diff line number Diff line change 22
33## Supported Versions
44
5- | Version | Supported |
6- | ---------| -------------------------------|
7- | 6.x | :white_check_mark : |
8- | 5.x | :white_check_mark : |
9- | 4.x | :warning : (security-fix only) |
10- | 3.x | :x : |
11- | <= 2.0 | :x : |
5+ | Version | Supported | PHP Version |
6+ | ---------| --------------------------------------------------------------------------------------------------------------------------------------| -----------------------------------------------------------------------------------------------------|
7+ | 6.0 | ![ OSS Lifecycle] ( https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F6.0%2FOSSMETADATA ) | ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/api/6.1.0 ) |
8+ | 5.0 | ![ OSS Lifecycle] ( https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F5.0%2FOSSMETADATA ) | ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/api/5.3.0 ) |
9+ | 4.0 | ![ OSS Lifecycle] ( https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F4.0%2FOSSMETADATA ) | ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/api/4.5.0 ) |
10+ | 3.0 | ![ OSS Lifecycle] ( https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F3.0%2FOSSMETADATA ) | ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/api/3.0.4 ) |
1211
1312## Reporting Potential Security Issues
1413
Original file line number Diff line number Diff line change 66
77use Api \App \UserIdentity ;
88use Api \User \Entity \UserRole ;
9+ use Mezzio \Authentication \AuthenticationInterface ;
910use Mezzio \Authentication \UserInterface ;
1011use Psr \Http \Message \ResponseInterface ;
1112use Psr \Http \Message \ServerRequestInterface ;
13+ use Psr \Http \Server \MiddlewareInterface ;
1214use Psr \Http \Server \RequestHandlerInterface ;
1315
14- class AuthenticationMiddleware extends \ Mezzio \ Authentication \AuthenticationMiddleware
16+ class AuthenticationMiddleware implements MiddlewareInterface
1517{
18+ public function __construct (
19+ protected AuthenticationInterface $ auth ,
20+ ) {
21+ }
22+
1623 public function process (ServerRequestInterface $ request , RequestHandlerInterface $ handler ): ResponseInterface
1724 {
1825 $ user = $ this ->auth ->authenticate ($ request );
You can’t perform that action at this time.
0 commit comments