Skip to content

Commit f490c5a

Browse files
committed
Documentation about using Command in Controller
... and color coding Ansi output using SensioLabs AnsiToHtml
1 parent e08729e commit f490c5a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cookbook/console/command_in_controller.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Color code the Ansi content to HTML
4444
----------------------------------------
4545

4646
By telling the ``StreamOutput`` it is decorated via the third parameter, it will return the Ansi color-coded content.
47-
The [SensioLabs AnsiToHtml converter](https://github.com/sensiolabs/ansi-to-html) can be required using ``Composer``
47+
The `SensioLabs AnsiToHtml converter`_ can be required using ``Composer``
4848
and helps you to get colorful html::
4949

5050
// src/AcmeBundle/Controller/GreetController.php
@@ -79,4 +79,7 @@ and helps you to get colorful html::
7979
}
8080

8181
The ``AnsiToHtmlConverter`` can also be registered
82-
[as a Twig Extension](https://github.com/sensiolabs/ansi-to-html#twig-integration), and supports optional themes
82+
`as a Twig Extension`_, and supports optional themes
83+
84+
.. _`SensioLabs AnsiToHtml converter`: https://github.com/sensiolabs/ansi-to-html
85+
.. _`as a Twig Extension`: https://github.com/sensiolabs/ansi-to-html#twig-integration

0 commit comments

Comments
 (0)