Commit 31d29739 authored by Daniel Hürtgen's avatar Daniel Hürtgen

[FEATURE] Apply configured lock implementation expiration to lock implementation if possible

parent 2f60d007
......@@ -4,6 +4,7 @@ namespace Higidi\Lock;
use Higidi\Lock\Builder\LockBuilder;
use Higidi\Lock\Configuration\Configuration;
use NinjaMutex\Lock\LockExpirationInterface;
use NinjaMutex\Lock\LockInterface;
use TYPO3\CMS\Core\Locking\Exception\LockCreateException;
use TYPO3\CMS\Core\Locking\LockFactory as CoreLockFactory;
......@@ -116,6 +117,9 @@ class LockFactory extends CoreLockFactory
1510439540
);
}
if ($lockImplementation instanceof LockExpirationInterface) {
$lockImplementation->setExpiration($this->configuration->getLockImplementationExpiration());
}
$this->lockImplementation = $lockImplementation;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment