From a823669197a25dc6c137a0527f5e0281292e1f88 Mon Sep 17 00:00:00 2001 From: Vincent Amstoutz Date: Fri, 20 Jun 2025 14:34:37 +0200 Subject: [PATCH] docs(console): add tip to document deprecated elements explicitly --- console.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/console.rst b/console.rst index 24fab9885da..db11cb2a7d7 100644 --- a/console.rst +++ b/console.rst @@ -184,6 +184,10 @@ You can optionally define a description, help message and the ``setDescription()`` method instead of the attribute to define the command description. + If you want to configure the command description and the command name, use the + ``AsCommand`` attribute to it, as follows: + ``#[AsCommand(name: 'app:create-user', description:'Creates users')]``. + The ``configure()`` method is called automatically at the end of the command constructor. If your command defines its own constructor, set the properties first and then call to the parent constructor, to make those properties