File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,8 @@ Listeners receive a
152
152
It is then dispatched just after the ``ConsoleEvents::ERROR `` event.
153
153
The exit code received in this case is the exception code.
154
154
155
+ .. _console_signal-event :
156
+
155
157
The ``ConsoleEvents::SIGNAL `` Event
156
158
-----------------------------------
157
159
@@ -184,7 +186,8 @@ Listeners receive a
184
186
.. tip ::
185
187
186
188
All the available signals (``SIGINT ``, ``SIGQUIT ``, etc.) are defined as
187
- `constants of the PCNTL PHP extension `_.
189
+ `constants of the PCNTL PHP extension `_. The extension has to be installed
190
+ for these constants to be available.
188
191
189
192
If you use the Console component inside a Symfony application, commands can
190
193
handle signals themselves. To do so, implement the
Original file line number Diff line number Diff line change @@ -269,6 +269,11 @@ Lock will be released automatically as soon as one process finishes::
269
269
}
270
270
// ...
271
271
272
+ .. note ::
273
+
274
+ In order for the above example to work, the `PCNTL `_ extension must be
275
+ installed.
276
+
272
277
To disable this behavior, set the ``autoRelease `` argument of
273
278
``LockFactory::createLock() `` to ``false ``. That will make the lock acquired
274
279
for 3600 seconds or until ``Lock::release() `` is called::
@@ -1074,3 +1079,4 @@ are still running.
1074
1079
.. _`ZooKeeper` : https://zookeeper.apache.org/
1075
1080
.. _`readers-writer lock` : https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock
1076
1081
.. _`priority policy` : https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Priority_policies
1082
+ .. _`PCNTL` : https://www.php.net/manual/book.pcntl.php
You can’t perform that action at this time.
0 commit comments