Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
AccessLogMiddleware | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
handleShutdown | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Models\Middleware; |
6 | |
7 | use PeServer\App\Models\Domain\AccessLogManager; |
8 | use PeServer\Core\Mvc\Middleware\IShutdownMiddleware; |
9 | use PeServer\Core\Mvc\Middleware\MiddlewareArgument; |
10 | |
11 | final class AccessLogMiddleware implements IShutdownMiddleware |
12 | { |
13 | public function __construct( |
14 | private AccessLogManager $accessLogManager |
15 | ) { |
16 | } |
17 | |
18 | #region IShutdownMiddleware |
19 | |
20 | public function handleShutdown(MiddlewareArgument $argument): void |
21 | { |
22 | $this->accessLogManager->put(); |
23 | } |
24 | |
25 | #endregion |
26 | } |