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

Commit8973c81

Browse files
committed
minorsymfony#3526 Changes for Console component (ifdattic)
This PR was merged into the 2.3 branch.Discussion----------Changes for Console componentFix the placement of 'the'.Add url for 'ask' method.Adjust horizontal scrolling and line length.| Q | A| ------------- | ---| Doc fix? | yes| New docs? | no| Applies to | 2.3| Fixed tickets |Commits-------f97c4a6 Fix the placement of 'the'.
2 parents6848bed +f97c4a6 commit8973c81

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

‎components/console/helpers/dialoghelper.rst‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ helper set, which you can get by calling
1212
$dialog = $this->getHelperSet()->get('dialog');
1313

1414
All the methods inside the Dialog Helper have an
15-
:class:`Symfony\\Component\\Console\\Output\\OutputInterface` asfirstthe
16-
argument, the question as the second argument and the default value as last
15+
:class:`Symfony\\Component\\Console\\Output\\OutputInterface` as the first
16+
argument, the question as the second argument and the default value asthelast
1717
argument.
1818

1919
Asking the User for confirmation
@@ -52,8 +52,9 @@ if you want to know a bundle name, you can add this to your command::
5252
);
5353

5454
The user will be asked "Please enter the name of the bundle". They can type
55-
some name which will be returned by the ``ask`` method. If they leave it empty,
56-
the default value (``AcmeDemoBundle`` here) is returned.
55+
some name which will be returned by the
56+
:method:`Symfony\\Component\\Console\\Helper\\DialogHelper::ask` method.
57+
If they leave it empty, the default value (``AcmeDemoBundle`` here) is returned.
5758

5859
Autocompletion
5960
~~~~~~~~~~~~~~
@@ -235,9 +236,12 @@ this set the seventh argument to ``true``::
235236
return $colors[$c];
236237
}, $selected);
237238

238-
$output->writeln('You have just selected: ' . implode(', ', $selectedColors));
239+
$output->writeln(
240+
'You have just selected: ' . implode(', ', $selectedColors)
241+
);
239242

240-
Now, when the user enters ``1,2``, the result will be: ``You have just selected: blue, yellow``.
243+
Now, when the user enters ``1,2``, the result will be:
244+
``You have just selected: blue, yellow``.
241245

242246
Testing a Command which expects input
243247
-------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp