Skip to content

Commit c23b469

Browse files
committed
minor symfony#11408 Mentioned the Lock expiringDate and isExpired methods (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Mentioned the Lock expiringDate and isExpired methods Fixes symfony#8362. I don't think they need any more explanation because they are self-explanatory. Commits ------- b3d5b64 Mentioned the Lock expiringDate and isExpired methods
2 parents 3926224 + b3d5b64 commit c23b469

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/lock.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ to reset the TTL to its original value::
146146
$lock->release();
147147
}
148148

149+
This component also provides two useful methods related to expiring locks:
150+
``getExpiringDate()`` (which returns ``null`` or a ``\DateTimeImmutable``
151+
object) and ``isExpired()`` (which returns a boolean).
152+
149153
Available Stores
150154
----------------
151155

0 commit comments

Comments
 (0)