Skip to content

Commit aad7277

Browse files
committed
Fixing things thanks to Wouter
1 parent 59f8c95 commit aad7277

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cookbook/console/command_in_controller.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Run this command from inside your controller via::
3131
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
3232
use Symfony\Component\Console\Input\ArrayInput;
3333
use Symfony\Component\Console\Output\BufferedOutput;
34+
use Symfony\Component\HttpFoundation\Response;
3435

3536
class SpoolController extends Controller
3637
{
@@ -66,7 +67,7 @@ First, require the package:
6667

6768
.. code-block:: bash
6869
69-
composer require sensiolabs/ansi-to-html
70+
$ composer require sensiolabs/ansi-to-html
7071
7172
Now, use it in your controller::
7273

@@ -76,6 +77,7 @@ Now, use it in your controller::
7677
use SensioLabs\AnsiConverter\AnsiToHtmlConverter;
7778
use Symfony\Component\Console\Output\BufferedOutput;
7879
use Symfony\Component\Console\Output\OutputInterface;
80+
use Symfony\Component\HttpFoundation\Response;
7981
// ...
8082

8183
class SpoolController extends Controller

0 commit comments

Comments
 (0)