File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323namespace Uecode \Bundle \QPushBundle \Command ;
2424
25- use Symfony \Bundle \ FrameworkBundle \Command \ContainerAwareCommand ;
25+ use Symfony \Component \ Console \Command \Command ;
2626use Symfony \Component \Console \Input \InputArgument ;
2727use Symfony \Component \Console \Input \InputInterface ;
2828use Symfony \Component \Console \Output \OutputInterface ;
29+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
30+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
2931
3032/**
3133 * @author Keith Kirk <kkirk@undergroundelephant.com>
3234 */
33- class QueueBuildCommand extends ContainerAwareCommand
35+ class QueueBuildCommand extends Command implements ContainerAwareInterface
3436{
37+ use ContainerAwareTrait;
38+
3539 protected $ output ;
3640
3741 protected function configure ()
@@ -51,7 +55,7 @@ protected function configure()
5155 protected function execute (InputInterface $ input , OutputInterface $ output )
5256 {
5357 $ this ->output = $ output ;
54- $ registry = $ this ->getContainer () ->get ('uecode_qpush ' );
58+ $ registry = $ this ->container ->get ('uecode_qpush ' );
5559
5660 $ name = $ input ->getArgument ('name ' );
5761
Original file line number Diff line number Diff line change 2222
2323namespace Uecode \Bundle \QPushBundle \Command ;
2424
25- use Symfony \Bundle \ FrameworkBundle \Command \ContainerAwareCommand ;
25+ use Symfony \Component \ Console \Command \Command ;
2626use Symfony \Component \Console \Input \InputArgument ;
2727use Symfony \Component \Console \Input \InputInterface ;
2828use Symfony \Component \Console \Input \InputOption ;
2929use Symfony \Component \Console \Output \OutputInterface ;
30+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
31+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
3032
3133/**
3234 * @author Keith Kirk <kkirk@undergroundelephant.com>
3335 */
34- class QueueDestroyCommand extends ContainerAwareCommand
36+ class QueueDestroyCommand extends Command implements ContainerAwareInterface
3537{
38+ use ContainerAwareTrait;
39+
3640 protected $ output ;
3741
3842 protected function configure ()
@@ -58,7 +62,7 @@ protected function configure()
5862 protected function execute (InputInterface $ input , OutputInterface $ output )
5963 {
6064 $ this ->output = $ output ;
61- $ registry = $ this ->getContainer () ->get ('uecode_qpush ' );
65+ $ registry = $ this ->container ->get ('uecode_qpush ' );
6266 $ dialog = $ this ->getHelperSet ()->get ('dialog ' );
6367
6468 $ name = $ input ->getArgument ('name ' );
Original file line number Diff line number Diff line change 2222
2323namespace Uecode \Bundle \QPushBundle \Command ;
2424
25- use Symfony \Bundle \ FrameworkBundle \Command \ContainerAwareCommand ;
25+ use Symfony \Component \ Console \Command \Command ;
2626use Symfony \Component \Console \Input \InputArgument ;
2727use Symfony \Component \Console \Input \InputInterface ;
2828use Symfony \Component \Console \Output \OutputInterface ;
29+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
30+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
2931
3032/**
3133 * @author Keith Kirk <kkirk@undergroundelephant.com>
3234 */
33- class QueuePublishCommand extends ContainerAwareCommand
35+ class QueuePublishCommand extends Command implements ContainerAwareInterface
3436{
37+ use ContainerAwareTrait;
38+
3539 protected $ output ;
3640
3741 protected function configure ()
@@ -55,7 +59,7 @@ protected function configure()
5559 protected function execute (InputInterface $ input , OutputInterface $ output )
5660 {
5761 $ this ->output = $ output ;
58- $ registry = $ this ->getContainer () ->get ('uecode_qpush ' );
62+ $ registry = $ this ->container ->get ('uecode_qpush ' );
5963
6064 $ name = $ input ->getArgument ('name ' );
6165 $ message = $ input ->getArgument ('message ' );
Original file line number Diff line number Diff line change 2222
2323namespace Uecode \Bundle \QPushBundle \Command ;
2424
25- use Symfony \Bundle \ FrameworkBundle \Command \ContainerAwareCommand ;
25+ use Symfony \Component \ Console \Command \Command ;
2626use Symfony \Component \Console \Input \InputArgument ;
2727use Symfony \Component \Console \Input \InputInterface ;
2828use Symfony \Component \Console \Output \OutputInterface ;
29+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
30+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
2931use Uecode \Bundle \QPushBundle \Event \Events ;
3032use Uecode \Bundle \QPushBundle \Event \MessageEvent ;
3133
3234/**
3335 * @author Keith Kirk <kkirk@undergroundelephant.com>
3436 */
35- class QueueReceiveCommand extends ContainerAwareCommand
37+ class QueueReceiveCommand extends Command implements ContainerAwareInterface
3638{
39+ use ContainerAwareTrait;
40+
3741 protected $ output ;
3842
3943 protected function configure ()
@@ -53,7 +57,7 @@ protected function configure()
5357 protected function execute (InputInterface $ input , OutputInterface $ output )
5458 {
5559 $ this ->output = $ output ;
56- $ registry = $ this ->getContainer () ->get ('uecode_qpush ' );
60+ $ registry = $ this ->container ->get ('uecode_qpush ' );
5761
5862 $ name = $ input ->getArgument ('name ' );
5963
You can’t perform that action at this time.
0 commit comments