| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function afterLogin(): void |
||
| 18 | { |
||
| 19 | if (Injector::inst()->has(HTTPRequest::class)) { |
||
| 20 | /** @var SudoModeServiceInterface $service */ |
||
| 21 | $service = Injector::inst()->get(SudoModeServiceInterface::class); |
||
| 22 | |||
| 23 | /** @var HTTPRequest $request */ |
||
| 24 | $request = Injector::inst()->get(HTTPRequest::class); |
||
| 25 | |||
| 26 | $service->activate($request->getSession()); |
||
| 27 | } |
||
| 30 |