Skip to content

Commit eef382c

Browse files
gary houbreOskarStark
authored andcommitted
More explication for return into execute command function
1 parent 1d2fab8 commit eef382c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

console.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,16 @@ want a command to create a user::
4545

4646
protected function execute(InputInterface $input, OutputInterface $output)
4747
{
48-
// ...
48+
// ... put here the code to run in your command
49+
50+
// this method must return an integer number with the "exit status code"
51+
// of the command.
4952

53+
// return this if there was no problem running the command
5054
return 0;
55+
56+
// or return this if some error happened during the execution
57+
// return 1;
5158
}
5259
}
5360

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy