Permalink
Browse files

minor #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
  • Loading branch information...
wouterj committed Jan 23, 2015
2 parents b9359a2 + 7f600ef commit 6cffa4e5f3136b2bd5c4e8d23d1fa1576a5ec7c4
Showing with 17 additions and 4 deletions.
  1. +17 −4 cookbook/console/console_command.rst
@@ -33,8 +33,17 @@ want to extend the AppBundle to greet you from the command line, create
$this
->setName('demo:greet')
->setDescription('Greet someone')
->addArgument('name', InputArgument::OPTIONAL, 'Who do you want to greet?')
->addOption('yell', null, InputOption::VALUE_NONE, 'If set, the task will yell in uppercase letters')
->addArgument(
'name',
InputArgument::OPTIONAL,
'Who do you want to greet?'
)
->addOption(
'yell',
null,
InputOption::VALUE_NONE,
'If set, the task will yell in uppercase letters'
)
;
}
@@ -94,7 +103,9 @@ translate some contents using a console command::
$name = $input->getArgument('name');
$translator = $this->getContainer()->get('translator');
if ($name) {
$output->writeln($translator->trans('Hello %name%!', array('%name%' => $name)));
$output->writeln(
$translator->trans('Hello %name%!', array('%name%' => $name))
);
} else {
$output->writeln($translator->trans('Hello!'));
}
@@ -128,7 +139,9 @@ before translating contents::
$translator->setLocale($locale);
if ($name) {
$output->writeln($translator->trans('Hello %name%!', array('%name%' => $name)));
$output->writeln(
$translator->trans('Hello %name%!', array('%name%' => $name))
);
} else {
$output->writeln($translator->trans('Hello!'));
}

0 comments on commit 6cffa4e

Please sign in to comment.