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

Appearance settings

Commit 6cffa4e

Browse filesBrowse files
committed
minor symfony#4866 Remove horizontal scrollbar (ifdattic)
This PR was merged into the 2.3 branch. Discussion ---------- Remove horizontal scrollbar | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | Commits ------- 7f600ef Remove horizontal scrollbar
2 parents b9359a2 + 7f600ef commit 6cffa4e
Copy full SHA for 6cffa4e

File tree

Expand file treeCollapse file tree

1 file changed

+17
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-4
lines changed

‎cookbook/console/console_command.rst

Copy file name to clipboardExpand all lines: cookbook/console/console_command.rst
+17-4Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,17 @@ want to extend the AppBundle to greet you from the command line, create
3333
$this
3434
->setName('demo:greet')
3535
->setDescription('Greet someone')
36-
->addArgument('name', InputArgument::OPTIONAL, 'Who do you want to greet?')
37-
->addOption('yell', null, InputOption::VALUE_NONE, 'If set, the task will yell in uppercase letters')
36+
->addArgument(
37+
'name',
38+
InputArgument::OPTIONAL,
39+
'Who do you want to greet?'
40+
)
41+
->addOption(
42+
'yell',
43+
null,
44+
InputOption::VALUE_NONE,
45+
'If set, the task will yell in uppercase letters'
46+
)
3847
;
3948
}
4049

@@ -94,7 +103,9 @@ translate some contents using a console command::
94103
$name = $input->getArgument('name');
95104
$translator = $this->getContainer()->get('translator');
96105
if ($name) {
97-
$output->writeln($translator->trans('Hello %name%!', array('%name%' => $name)));
106+
$output->writeln(
107+
$translator->trans('Hello %name%!', array('%name%' => $name))
108+
);
98109
} else {
99110
$output->writeln($translator->trans('Hello!'));
100111
}
@@ -128,7 +139,9 @@ before translating contents::
128139
$translator->setLocale($locale);
129140

130141
if ($name) {
131-
$output->writeln($translator->trans('Hello %name%!', array('%name%' => $name)));
142+
$output->writeln(
143+
$translator->trans('Hello %name%!', array('%name%' => $name))
144+
);
132145
} else {
133146
$output->writeln($translator->trans('Hello!'));
134147
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.