Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lock
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
TYPO3
Extensions
lock
Commits
31d29739
There was an error fetching the commit references. Please try again later.
Commit
31d29739
authored
7 years ago
by
Daniel Hürtgen
Browse files
Options
Downloads
Patches
Plain Diff
[FEATURE] Apply configured lock implementation expiration to lock implementation if possible
parent
2f60d007
No related merge requests found
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/LockFactory.php
+4
-0
4 additions, 0 deletions
Classes/LockFactory.php
with
4 additions
and
0 deletions
Classes/LockFactory.php
+
4
−
0
View file @
31d29739
...
@@ -4,6 +4,7 @@ namespace Higidi\Lock;
...
@@ -4,6 +4,7 @@ namespace Higidi\Lock;
use
Higidi\Lock\Builder\LockBuilder
;
use
Higidi\Lock\Builder\LockBuilder
;
use
Higidi\Lock\Configuration\Configuration
;
use
Higidi\Lock\Configuration\Configuration
;
use
NinjaMutex\Lock\LockExpirationInterface
;
use
NinjaMutex\Lock\LockInterface
;
use
NinjaMutex\Lock\LockInterface
;
use
TYPO3\CMS\Core\Locking\Exception\LockCreateException
;
use
TYPO3\CMS\Core\Locking\Exception\LockCreateException
;
use
TYPO3\CMS\Core\Locking\LockFactory
as
CoreLockFactory
;
use
TYPO3\CMS\Core\Locking\LockFactory
as
CoreLockFactory
;
...
@@ -116,6 +117,9 @@ class LockFactory extends CoreLockFactory
...
@@ -116,6 +117,9 @@ class LockFactory extends CoreLockFactory
1510439540
1510439540
);
);
}
}
if
(
$lockImplementation
instanceof
LockExpirationInterface
)
{
$lockImplementation
->
setExpiration
(
$this
->
configuration
->
getLockImplementationExpiration
());
}
$this
->
lockImplementation
=
$lockImplementation
;
$this
->
lockImplementation
=
$lockImplementation
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment