Conditions | 3 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
19 | public function onBootstrap(EventInterface $e): void |
||
20 | { |
||
21 | // Only attach the Listener if the request came in through http(s) |
||
22 | if ($e instanceof MvcEvent && PHP_SAPI !== 'cli') { |
||
23 | $app = $e->getApplication(); |
||
24 | $app->getServiceManager()->get(Listener::class)->attach($app->getEventManager()); |
||
25 | } |
||
36 |