File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,27 @@ Result Methods
325325 'Consectetur adipiscing elit',
326326 ]);
327327
328+ :method: `Symfony\\ Component\\ Console\\ Style\\ SymfonyStyle::info `
329+ It's similar to the ``success() `` method (the given string or array of strings
330+ are displayed with a green background) but the ``[OK] `` label is not prefixed.
331+ It's meant to be used once to display the final result of executing the given
332+ command, without showing the result as a successful or failed one::
333+
334+ // use simple strings for short success messages
335+ $io->info('Lorem ipsum dolor sit amet');
336+
337+ // ...
338+
339+ // consider using arrays when displaying long success messages
340+ $io->info([
341+ 'Lorem ipsum dolor sit amet',
342+ 'Consectetur adipiscing elit',
343+ ]);
344+
345+ .. versionadded :: 5.2
346+
347+ The ``info() `` method was introduced in Symfony 5.2.
348+
328349:method: `Symfony\\ Component\\ Console\\ Style\\ SymfonyStyle::warning `
329350 It displays the given string or array of strings highlighted as a warning
330351 message (with a red background and the ``[WARNING] `` label). It's meant to be
You can’t perform that action at this time.
0 commit comments