Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc23f34e

Browse files
committed
Applied some suggestions
1 parent012456d commitc23f34e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

‎components/console/changing_default_behavior.rst

Lines changed: 8 additions & 9 deletions
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 theDefault Command that the Application runs or
9-
maybe you just want to run aSingle 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 thedefault command that the Application runs or
9+
maybe you just want to run asingle 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, thecommand``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-
Youcan alsosimplify how you execute the application::
108+
Executing the applicationcan alsobe simplified::
110109

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp