@@ -13,11 +13,11 @@ Consider for example the code used to display the title of the following command
13
13
// src/Command/GreetCommand.php
14
14
namespace App\Command;
15
15
16
- use Symfony\Bundle\FrameworkBundle \Command\ContainerAwareCommand ;
16
+ use Symfony\Component\Console \Command\Command ;
17
17
use Symfony\Component\Console\Input\InputInterface;
18
18
use Symfony\Component\Console\Output\OutputInterface;
19
19
20
- class GreetCommand extends ContainerAwareCommand
20
+ class GreetCommand extends Command
21
21
{
22
22
// ...
23
23
@@ -53,12 +53,12 @@ title of the command::
53
53
// src/Command/GreetCommand.php
54
54
namespace App\Command;
55
55
56
- use Symfony\Bundle\FrameworkBundle \Command\ContainerAwareCommand ;
56
+ use Symfony\Component\Console \Command\Command ;
57
57
use Symfony\Component\Console\Style\SymfonyStyle;
58
58
use Symfony\Component\Console\Input\InputInterface;
59
59
use Symfony\Component\Console\Output\OutputInterface;
60
60
61
- class GreetCommand extends ContainerAwareCommand
61
+ class GreetCommand extends Command
62
62
{
63
63
// ...
64
64
@@ -355,10 +355,11 @@ of your commands to change their appearance::
355
355
namespace App\Console;
356
356
357
357
use App\Console\CustomStyle;
358
+ use Symfony\Component\Console\Command\Command;
358
359
use Symfony\Component\Console\Input\InputInterface;
359
360
use Symfony\Component\Console\Output\OutputInterface;
360
361
361
- class GreetCommand extends ContainerAwareCommand
362
+ class GreetCommand extends Command
362
363
{
363
364
// ...
364
365
0 commit comments