Use imports instead of FQNs

This commit is contained in:
Jan Böhmer 2023-06-11 14:55:06 +02:00
parent f63b6d7207
commit 5629215ce4
179 changed files with 792 additions and 597 deletions

View file

@ -41,6 +41,7 @@ declare(strict_types=1);
namespace App\EventSubscriber\LogSystem;
use Symfony\Component\HttpFoundation\Request;
use App\Entity\LogSystem\SecurityEventLogEntry;
use App\Events\SecurityEvent;
use App\Events\SecurityEvents;
@ -122,7 +123,7 @@ final class SecurityEventLoggerSubscriber implements EventSubscriberInterface
$anonymize = $this->gdpr_compliance;
$request = $this->requestStack->getCurrentRequest();
if ($request instanceof \Symfony\Component\HttpFoundation\Request) {
if ($request instanceof Request) {
$ip = $request->getClientIp() ?? 'unknown';
} else {
$ip = 'Console';