From 998eafa6f25ae4f1e9992726ee029749afa921c3 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 26 Dec 2023 09:23:34 +0100 Subject: [PATCH] Mention Symfony CLI workers where applicable --- frontend/encore/simple-example.rst | 7 +++++++ messenger.rst | 7 +++++++ setup/symfony_server.rst | 2 ++ 3 files changed, 16 insertions(+) diff --git a/frontend/encore/simple-example.rst b/frontend/encore/simple-example.rst index 2d46a392293..9ba62c797ee 100644 --- a/frontend/encore/simple-example.rst +++ b/frontend/encore/simple-example.rst @@ -83,6 +83,13 @@ To build the assets, run the following if you use the Yarn package manager: All of these commands - e.g. ``dev`` or ``watch`` - are shortcuts that are defined in your ``package.json`` file. +.. tip:: + + If you're using the Symfony CLI tool, you can configure workers to be + automatically run along with the webserver. You can find more information + in the :ref:`Symfony CLI Workers ` + documentation. + .. caution:: Whenever you make changes in your ``webpack.config.js`` file, you must diff --git a/messenger.rst b/messenger.rst index 2de70a2d0cc..97100cdbd34 100644 --- a/messenger.rst +++ b/messenger.rst @@ -482,6 +482,13 @@ The first argument is the receiver's name (or service id if you routed to a custom service). By default, the command will run forever: looking for new messages on your transport and handling them. This command is called your "worker". +.. tip:: + + In a development environment and if you're using the Symfony CLI tool, + you can configure workers to be automatically run along with the webserver. + You can find more information in the + :ref:`Symfony CLI Workers ` documentation. + .. tip:: To properly stop a worker, throw an instance of diff --git a/setup/symfony_server.rst b/setup/symfony_server.rst index 76073b5dcfa..2e61d331bd4 100644 --- a/setup/symfony_server.rst +++ b/setup/symfony_server.rst @@ -338,6 +338,8 @@ There are several options that you can set using a ``.symfony.local.yaml`` confi using the ``proxy:domain:attach`` command for the current project when you start the server. +.. _symfony-server_configuring-workers: + Configuring Workers ~~~~~~~~~~~~~~~~~~~