Skip to content

Commit 0bfa8ac

Browse files
fchris82javiereguiluz
authored andcommitted
[Console] Add note about URL cutting of default output wrapper
1 parent 4952e4c commit 0bfa8ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

console/style.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,13 @@ User Input Methods
337337
Result Methods
338338
~~~~~~~~~~~~~~
339339

340+
.. note::
341+
342+
If you print any URL it won't be broken/cut, it will be clickable - if the terminal provides it. If the "well
343+
formatted output" is more important, you can switch it off::
344+
345+
$io->getOutputWrapper()->setAllowCutUrls(true);
346+
340347
:method:`Symfony\\Component\\Console\\Style\\SymfonyStyle::success`
341348
It displays the given string or array of strings highlighted as a successful
342349
message (with a green background and the ``[OK]`` label). It's meant to be

0 commit comments

Comments
 (0)