From baf039424a1047b1d0f2c9f52bbcbae2e1a1b76f Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Fri, 7 Nov 2025 11:12:19 +0100 Subject: [PATCH] [Lock] Add support for keys serialization using the Serializer component --- components/lock.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/lock.rst b/components/lock.rst index 51a065cdab1..fe397247cfc 100644 --- a/components/lock.rst +++ b/components/lock.rst @@ -128,6 +128,15 @@ example, the kernel will automatically release semaphores acquired by the store (see :ref:`lock stores ` for supported stores), an exception will be thrown when the application tries to serialize the key. +Locks can be serialized using both the native PHP serialization system +and its :phpfunction:`serialize` function, or using the Serializer +component. + +.. versionadded:: 7.4 + + The support for serializing locks with the Serializer component was + introduced in Symfony 7.4. + .. _lock-blocking-locks: Blocking Locks