8000 Update lock.rst · symfony/symfony-docs@825534d · GitHub
[go: up one dir, main page]

Skip to content

Commit 825534d

Browse files
Update lock.rst
Co-Authored-By: Clement Herreman <clement.herreman@gmail.com>
1 parent 1d8680f commit 825534d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Topics
4242
forms
4343
frontend
4444
http_cache
45+
lock
4546
logging
4647
mailer
4748
mercure

lock.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ install messenger:
3535
Configuring Lock with FrameworkBundle
3636
-------------------------------------
3737

38-
By default, Symfony provides a :doc:`Semaphore<lock-store-semaphore>`
39-
when available, or a :doc:`Flock<lock-store-flock>` otherwise. You can configure
38+
By default, Symfony provides a :ref:`Semaphore <lock-store-semaphore>`
39+
when available, or a :ref:`Flock <lock-store-flock>` otherwise. You can configure
4040
this behavior by using the ``lock`` key like:
4141

4242
.. configuration-block::
@@ -267,8 +267,8 @@ provides :doc:`named lock <reference-lock-resources-name>`::
267267
Each name becomes a service where the service id suffixed by the name of the
268268
lock (e.g. ``lock.invoice``). An autowiring alias is also created for each lock
269269
using the camel case version of its name suffixed by ``Lock`` - e.g. ``invoice``
270-
can be injected automatically by naming the argument ``$invoiceLock`` and
271-
type-hinting it with :class:`Symfony\\Component\\Lock\\LockInterface`.
270+
can be injected automatically by naming the argument ``$invoiceLock`` and
271+
type-hinting it with :class:`Symfony\\Component\\Lock\\LockInterface`.
272272

273273
Symfony also provide a corresponding factory and store following the same rules
274274
(e.g. ``invoice`` generates a ``lock.invoice.factory`` and
@@ -288,4 +288,4 @@ you can do it by :doc:`decorating the store </service_container/service_decorati
288288
lock.default.retry_till_save.store:
289289
class: Symfony\Component\Lock\Store\RetryTillSaveStore
290290
decorates: lock.default.store
291-
arguments: ['@lock.default.retry.till.save.store.inner', 100, 50]
291+
arguments: ['@lock.default.retry_till_save.store.inner', 100, 50]

0 commit comments

Comments
 (0)
0