Skip to content

Commit aa1b742

Browse files
[Lock] Add support for keys serialization using the Serializer component
1 parent c805014 commit aa1b742

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/lock.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,15 @@ example, the kernel will automatically release semaphores acquired by the
128128
store (see :ref:`lock stores <lock-stores>` for supported stores), an
129129
exception will be thrown when the application tries to serialize the key.
130130

131+
Locks can be serialized using both the native PHP serialization system
132+
and its :phpfunction:`serialize()` function, or using the Serializer
133+
component.
134+
135+
.. versionadded:: 7.4
136+
137+
The support for serializing locks with the Serializer component was
138+
introduced in Symfony 7.4.
139+
131140
.. _lock-blocking-locks:
132141

133142
Blocking Locks

0 commit comments

Comments
 (0)