Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc11d20

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Lock - replace getExpiringDate by getRemainingLifetime
2 parentsfed7f24 +dab151b commitdc11d20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎components/lock.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ to reset the TTL to its original value::
191191
$lock->refresh(600);
192192

193193
This component also provides two useful methods related to expiring locks:
194-
``getExpiringDate()`` (which returns ``null`` or a ``\DateTimeImmutable``
195-
object) and ``isExpired()`` (which returns a boolean).
194+
``getRemainingLifetime()`` (which returns ``null`` or a ``float``
195+
as seconds) and ``isExpired()`` (which returns a boolean).
196196

197197
The Owner of The Lock
198198
---------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp