@@ -12,11 +12,11 @@ use it to create your own commands.
1212Creating a Command
1313------------------
1414
15- Commands are defined in classes whichmust be created in the ``Command `` namespace
16- of your bundle (e.g. ``AppBundle\Command ``) and their namesmust end with the
15+ Commands are defined in classes whichshould be created in the ``Command `` namespace
16+ of your bundle (e.g. ``AppBundle\Command ``) and their namesshould end with the
1717``Command `` suffix.
1818
19- For example,a command called `` CreateUser `` must follow this structure ::
19+ For example,you may want a command to create an user ::
2020
2121 // src/AppBundle/Command/CreateUserCommand.php
2222 namespace AppBundle\Command;
@@ -38,6 +38,19 @@ For example, a command called ``CreateUser`` must follow this structure::
3838 }
3939 }
4040
41+ If you're using the:ref: `default services.yml configuration <service-container-services-load-example >`,
42+ your command classes are automatically registered as services. You have nothing
43+ else to do!
44+
45+ ..note ::
46+
47+ You can also manually register your command as a service by configuring the service
48+ and:doc: `tagging it </service_container/tags >` with ``console.command ``.
49+
50+ Symfony also looks in the ``Command/ `` directory of bundles for commands
51+ non registered as a service but this is deprecated since Symfony 3.4 and
52+ won't be supported in Symfony 4.0.
53+
4154Configuring the Command
4255-----------------------
4356