From 0ae4ab9269444898e6aee0876dd1e783ef266fe3 Mon Sep 17 00:00:00 2001 From: Ferdinand Kuhl Date: Wed, 1 Jun 2022 00:25:02 +0200 Subject: [PATCH] do not use static class name as key in proxied classes (changes after compile run to "_Original") --- Classes/Http/SessionLockRequestMiddleware.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Http/SessionLockRequestMiddleware.php b/Classes/Http/SessionLockRequestMiddleware.php index a8630da..261de86 100644 --- a/Classes/Http/SessionLockRequestMiddleware.php +++ b/Classes/Http/SessionLockRequestMiddleware.php @@ -14,6 +14,7 @@ use Symfony\Component\Lock\Exception\LockAcquiringException; use Symfony\Component\Lock\Key; use Symfony\Component\Lock\LockFactory; + class SessionLockRequestMiddleware implements MiddlewareInterface { public const PARAMETER_NAME = 'sessionLock'; @@ -71,7 +72,7 @@ class SessionLockRequestMiddleware implements MiddlewareInterface $lock = $this->lockFactory->createLockFromKey($key, $this->timeToLive, $this->autoRelease); - $request = $request->withAttribute(static::class . '.' . static::PARAMETER_NAME, $lock); + $request = $request->withAttribute(SessionLockRequestMiddleware::class . '.' . static::PARAMETER_NAME, $lock); $this->logger->debug('SessionLock: Try to get "' . $key . '"'); $timedOut = \time() + $this->secondsToWait;