File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1313
1414use ONGR \ElasticsearchBundle \DependencyInjection \Configuration ;
1515use ONGR \ElasticsearchBundle \Service \IndexService ;
16- use Symfony \Bundle \FrameworkBundle \Command \ContainerAwareCommand ;
1716use Symfony \Component \Console \Command \Command ;
1817use Symfony \Component \Console \Input \InputOption ;
1918use Symfony \Component \DependencyInjection \Container ;
19+ use Symfony \Component \DependencyInjection \ContainerInterface ;
2020
2121abstract class AbstractIndexServiceAwareCommand extends Command
2222{
2323 private $ container ;
2424
2525 const INDEX_OPTION = 'index ' ;
2626
27- public function __construct (Container $ container )
27+ public function __construct (ContainerInterface $ container )
2828 {
2929 $ this ->container = $ container ;
3030 parent ::__construct ();
@@ -58,7 +58,7 @@ protected function getIndex($name): IndexService
5858 );
5959 }
6060
61- public function getContainer (): Container
61+ public function getContainer (): ContainerInterface
6262 {
6363 return $ this ->container ;
6464 }
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ parameters:
33
44services :
55
6- _defaults : { public: true }
6+ _defaults :
7+ public : true
8+ autowire : true
79
810 ONGR\ElasticsearchBundle\Command\ :
911 resource : ' ../../Command'
@@ -45,4 +47,4 @@ services:
4547 ONGR\ElasticsearchBundle\EventListener\TerminateListener :
4648 arguments : ["@service_container", "%ongr.esb.indexes%"]
4749 tags :
48- - { name: kernel.event_listener, event: kernel.terminate }
50+ - { name: kernel.event_listener, event: kernel.terminate }
You can’t perform that action at this time.
0 commit comments