• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ericfortmeyer / activity-log / 20388886829

20 Dec 2025 04:04AM UTC coverage: 55.481% (-1.1%) from 56.627%
20388886829

push

github

web-flow
Use-exception-handling (#57)

* refactor: use new exception handling feature

Signed-off-by: Eric Fortmeyer <e.fortmeyer01@gmail.com>

* build: upgrade to phpolar 8.3.0

The project will now use the new exception handling feature.

Signed-off-by: Eric Fortmeyer <e.fortmeyer01@gmail.com>

0 of 13 new or added lines in 3 files covered. (0.0%)

329 of 593 relevant lines covered (55.48%)

1.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Bootstrapper.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace EricFortmeyer\ActivityLog;
6

7
use Phpolar\Phpolar\App;
8
use Phpolar\Phpolar\ExceptionHandlerInterface;
9
use Psr\Container\ContainerInterface;
10
use Psr\Http\Message\ServerRequestInterface;
11
use Psr\Http\Server\MiddlewareInterface;
12

13
/**
14
 * Bootstraps the application
15
 */
16
final readonly class Bootstrapper
17
{
18
    public function __construct(
19
        private ContainerInterface $container,
20
        private ServerRequestInterface $serverRequest,
21
        private MiddlewareInterface $callbackMiddleware,
22
        private MiddlewareInterface $loginMiddleware,
23
        private MiddlewareInterface $logoutMiddleware,
24
        private ExceptionHandlerInterface $exceptionHandler,
25
    ) {
NEW
26
        ini_set("display_errors", true);
×
NEW
27
        ini_set("session.name", "activity-log-app");
×
28
        // ini_set("session.cache_limiter", "private_no_expire");
29
    }
30

31
    public function __invoke(): void
32
    {
33
        App::create($this->container)
×
34
            // ->useCsrfMiddleware()
×
35
            ->useAuthorization()
×
NEW
36
            ->useExceptionHandler($this->exceptionHandler)
×
37
            ->use($this->callbackMiddleware)
×
38
            ->use($this->loginMiddleware)
×
39
            ->use($this->logoutMiddleware)
×
40
            ->receive($this->serverRequest);
×
41
    }
42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc