File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,8 @@ method::
215
215
.. tip ::
216
216
217
217
All the available signals (``SIGINT ``, ``SIGQUIT ``, etc.) are defined as
218
- `constants of the PCNTL PHP extension `_.
218
+ `constants of the PCNTL PHP extension `_. The extension has to be installed
219
+ for these constants to be available.
219
220
220
221
If you use the Console component inside a Symfony application, commands can
221
222
handle signals themselves. To do so, implement the
Original file line number Diff line number Diff line change @@ -260,6 +260,11 @@ Lock will be released automatically as soon as one process finishes::
260
260
}
261
261
// ...
262
262
263
+ .. note ::
264
+
265
+ In order for the above example to work, the `PCNTL `_ extension must be
266
+ installed.
267
+
263
268
To disable this behavior, set the ``autoRelease `` argument of
264
269
``LockFactory::createLock() `` to ``false ``. That will make the lock acquired
265
270
for 3600 seconds or until ``Lock::release() `` is called::
@@ -1057,3 +1062,4 @@ are still running.
1057
1062
.. _`ZooKeeper` : https://zookeeper.apache.org/
1058
1063
.. _`readers-writer lock` : https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock
1059
1064
.. _`priority policy` : https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Priority_policies
1065
+ .. _`PCNTL` : https://www.php.net/manual/book.pcntl.php
You can’t perform that action at this time.
0 commit comments