Skip to content

Commit a31f282

Browse files
committed
minor #19334 Mention Symfony CLI workers where applicable (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- Mention Symfony CLI workers where applicable `@kbond` had the great idea to add Symfony CLI workers mentions where relevant. I didn't even know about this feature 😄 If any place come into your mind on where this should be added in the docs, I'll gladly take care of it 👍 🎄 Commits ------- 998eafa Mention Symfony CLI workers where applicable
2 parents 564a3ac + 998eafa commit a31f282

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

frontend/encore/simple-example.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ To build the assets, run the following if you use the Yarn package manager:
8383
All of these commands - e.g. ``dev`` or ``watch`` - are shortcuts that are defined
8484
in your ``package.json`` file.
8585

86+
.. tip::
87+
88+
If you're using the Symfony CLI tool, you can configure workers to be
89+
automatically run along with the webserver. You can find more information
90+
in the :ref:`Symfony CLI Workers <symfony-server_configuring-workers>`
91+
documentation.
92+
8693
.. caution::
8794

8895
Whenever you make changes in your ``webpack.config.js`` file, you must

messenger.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,13 @@ The first argument is the receiver's name (or service id if you routed to a
482482
custom service). By default, the command will run forever: looking for new messages
483483
on your transport and handling them. This command is called your "worker".
484484

485+
.. tip::
486+
487+
In a development environment and if you're using the Symfony CLI tool,
488+
you can configure workers to be automatically run along with the webserver.
489+
You can find more information in the
490+
:ref:`Symfony CLI Workers <symfony-server_configuring-workers>` documentation.
491+
485492
.. tip::
486493

487494
To properly stop a worker, throw an instance of

setup/symfony_server.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ There are several options that you can set using a ``.symfony.local.yaml`` confi
338338
using the ``proxy:domain:attach`` command for the current project when you start
339339
the server.
340340

341+
.. _symfony-server_configuring-workers:
342+
341343
Configuring Workers
342344
~~~~~~~~~~~~~~~~~~~
343345

0 commit comments

Comments
 (0)