Skip to content

Commit 68c2356

Browse files
committed
minor #7551 Made 'create-user' command consistent. (finchmeister)
This PR was submitted for the 3.2 branch but it was merged into the 2.7 branch instead (closes #7551). Discussion ---------- Made 'create-user' command consistent. There is a very minor inconsistency between the naming of the 'create users' command at the beginning of the document and the 'create user' command for the rest of the article. It starts with the plural, then changes to singular. A very minor thing, but when you're following the documentation precisely, this inconsistency raises unnecessary questions. Updated all references to 'create-user'. Commits ------- d04bcc4 Made 'create-user' command consistent.
2 parents 1095aa8 + d04bcc4 commit 68c2356

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

console.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ method. Then you can optionally define a help message and the
5050
{
5151
$this
5252
// the name of the command (the part after "app/console")
53-
->setName('app:create-users')
53+
->setName('app:create-user')
5454

5555
// the short description shown while running "php app/console list"
56-
->setDescription('Creates new users.')
56+
->setDescription('Creates a new user.')
5757

5858
// the full command description shown when running the command with
5959
// the "--help" option
60-
->setHelp('This command allows you to create users...')
60+
->setHelp('This command allows you to create a user...')
6161
;
6262
}
6363

@@ -68,7 +68,7 @@ After configuring the command, you can execute it in the terminal:
6868

6969
.. code-block:: terminal
7070
71-
$ php app/console app:create-users
71+
$ php app/console app:create-user
7272
7373
As you might expect, this command will do nothing as you didn't write any logic
7474
yet. Add your own logic inside the ``execute()`` method, which has access to the

0 commit comments

Comments
 (0)