From eef382cf8e70e69b481ee04feebe179a2de637e7 Mon Sep 17 00:00:00 2001 From: gary houbre Date: Mon, 26 Oct 2020 12:49:33 +0100 Subject: [PATCH] More explication for return into execute command function --- console.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/console.rst b/console.rst index ad9bb8c16e6..663fafbfd9a 100644 --- a/console.rst +++ b/console.rst @@ -45,9 +45,16 @@ want a command to create a user:: protected function execute(InputInterface $input, OutputInterface $output) { - // ... + // ... put here the code to run in your command + + // this method must return an integer number with the "exit status code" + // of the command. + // return this if there was no problem running the command return 0; + + // or return this if some error happened during the execution + // return 1; } }