Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
Extensions
lock
Commits
31d29739
Commit
31d29739
authored
Nov 15, 2017
by
Daniel Hürtgen
Browse files
[FEATURE] Apply configured lock implementation expiration to lock implementation if possible
parent
2f60d007
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Classes/LockFactory.php
View file @
31d29739
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment