Skip to content

Commit 8decc93

Browse files
committed
minor #17224 [Console] Remove $defaultName (mohamedGasmii)
This PR was merged into the 6.1 branch. Discussion ---------- [Console] Remove $defaultName Remove $defaultName and add clarification in the comment <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- e343163 [Console] Remove $defaultName
2 parents 78393b8 + e343163 commit 8decc93

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)