Skip to content

Commit

Permalink
Add documentation: creating a document via a command (#682)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Prokyonn <[email protected]>
  • Loading branch information
szz and Prokyonn authored Apr 26, 2024
1 parent eb31f37 commit 863b783
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ on which subscribers you have registered.

See the :doc:`subscribers` chapter for more information.

.. note::

Be aware that documents can only be created in the admin context, not in the website context. For CLI commands, this means you must use ``bin/adminconsole`` to execute the command. Alternatively, you can execute a command that dispatches messages via the Symfony Messenger. In this case, the consumer that consumes the dispatched message must also run in the admin context.

.. code-block:: bash
bin/adminconsole your:command
The Path Builder
----------------

Expand Down

0 comments on commit 863b783

Please sign in to comment.