Skip to content

Commit c23f34e

Browse files
committed
Applied some suggestions
1 parent 012456d commit c23f34e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

components/console/changing_default_behavior.rst

+8-9
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,20 @@ Changing the Default Behavior
55
=============================
66

77
When building a command line tool, you may need to customize it to fit your needs.
8-
Probably you want to change the Default Command that the Application runs or
9-
maybe you just want to run a Single Command instead of have to pass the command
10-
name each time. Fortunately it is possible to do both.
8+
Probably you want to change the default command that the Application runs or
9+
maybe you just want to run a single command instead of have to pass the command
10+
name each time. Fortunately, it is possible to do both.
1111

1212
Changing the Default Command
1313
----------------------------
1414

1515
.. versionadded:: 2.5,
16-
The :method:`Symfony\\Component\\Console\\Application::setDefaultCommand`
17-
method was introduced in version 2.5
16+
The :method:`Symfony\\Component\\Console\\Application::setDefaultCommand`
17+
method was introduced in version 2.5.
1818

1919
By default the Application will always run the ListCommand. In order to change
2020
the default command you just need to pass the command name you want to run by
21-
default to the :method:`Symfony\\Component\\Console\\Application::setDefaultCommand`
22-
method::
21+
default to the ``setDefaultCommand`` method::
2322

2423
#!/usr/bin/env php
2524
<?php
@@ -103,10 +102,10 @@ it is possible to remove this need by extending the application::
103102
}
104103
}
105104

106-
When calling your console script, the command ``MyCommand`` will then always
105+
When calling your console script, the ``MyCommand`` command will then always
107106
be used, without having to pass its name.
108107

109-
You can also simplify how you execute the application::
108+
Executing the application can also be simplified::
110109

111110
#!/usr/bin/env php
112111
<?php

0 commit comments

Comments
 (0)