Skip to content

Commit e343163

Browse files
[Console] Remove $defaultName
Remove $defaultName and add clarification in the comment
1 parent d026fe4 commit e343163

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

console.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,10 @@ want a command to create a user::
109109
use Symfony\Component\Console\Output\OutputInterface;
110110

111111
// the name of the command is what users type after "php bin/console"
112+
// and it replaces the static $defaultName
112113
#[AsCommand(name: 'app:create-user')]
113114
class CreateUserCommand extends Command
114115
{
115-
protected static $defaultName = 'app:create-user';
116-
117116
protected function execute(InputInterface $input, OutputInterface $output): int
118117
{
119118
// ... put here the code to create the user

0 commit comments

Comments
 (0)