Skip to content

Commit 4a3d165

Browse files
committed
minor #16476 [Console] Add note about URL cutting of default output wrapper (fchris82)
This PR was submitted for the 6.1 branch but it was merged into the 6.2 branch instead. Discussion ---------- [Console] Add note about URL cutting of default output wrapper Add note about the new output wrapper function. Related MR: symfony/symfony#45318 Commits ------- 0bfa8ac [Console] Add note about URL cutting of default output wrapper
2 parents 4952e4c + 0bfa8ac commit 4a3d165

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)