File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
Changing the Default Behavior
5
5
=============================
6
6
7
- .. versionadded :: 2.5,
8
- The :method: `Symfony\\ Component\\ Console\\ Application::setDefaultCommand `
9
- method was introduced in version 2.5
10
-
11
7
When building a command line tool, you may need to customize it to fit your needs.
12
8
Probably you want to change the Default Command that the Application runs or
13
9
maybe you just want to run a Single Command instead of have to pass the command
@@ -16,6 +12,10 @@ name each time. Fortunately it is possible to do both.
16
12
Changing the Default Command
17
13
----------------------------
18
14
15
+ .. versionadded :: 2.5,
16
+ The :method: `Symfony\\ Component\\ Console\\ Application::setDefaultCommand `
17
+ method was introduced in version 2.5
18
+
19
19
By default the Application will always run the ListCommand. In order to change
20
20
the default command you just need to pass the command name you want to run by
21
21
default to the :method: `Symfony\\ Component\\ Console\\ Application::setDefaultCommand `
You can’t perform that action at this time.
0 commit comments