Fixed service wiring configuration

This commit is contained in:
Jan Böhmer 2023-06-11 14:50:47 +02:00
parent 98dc553938
commit f63b6d7207
14 changed files with 29 additions and 35 deletions

View file

@ -53,7 +53,7 @@ use Symfony\Component\HttpFoundation\RequestStack;
*/
final class SecurityEventLoggerSubscriber implements EventSubscriberInterface
{
public function __construct(private readonly RequestStack $requestStack, private readonly EventLogger $eventLogger, private readonly bool $gpdr_compliant)
public function __construct(private readonly RequestStack $requestStack, private readonly EventLogger $eventLogger, private readonly bool $gdpr_compliance)
{
}
@ -119,7 +119,7 @@ final class SecurityEventLoggerSubscriber implements EventSubscriberInterface
private function addLog(string $type, SecurityEvent $event): void
{
$anonymize = $this->gpdr_compliant;
$anonymize = $this->gdpr_compliance;
$request = $this->requestStack->getCurrentRequest();
if ($request instanceof \Symfony\Component\HttpFoundation\Request) {