We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d026fe4 commit e343163Copy full SHA for e343163
console.rst
@@ -109,11 +109,10 @@ want a command to create a user::
109
use Symfony\Component\Console\Output\OutputInterface;
110
111
// the name of the command is what users type after "php bin/console"
112
+ // and it replaces the static $defaultName
113
#[AsCommand(name: 'app:create-user')]
114
class CreateUserCommand extends Command
115
{
- protected static $defaultName = 'app:create-user';
116
-
117
protected function execute(InputInterface $input, OutputInterface $output): int
118
119
// ... put here the code to create the user
0 commit comments