File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55class InitializeIndexes extends \Symfony \Component \Console \Command \Command
66{
77
8- private \Spameri \Elastic \Model \Indices \ Delete $ delete ;
8+ private \Spameri \Elastic \Model \DeleteIndex $ deleteIndex ;
99
1010 private \Spameri \Elastic \Model \InitializeIndex $ initializeIndex ;
1111
@@ -14,13 +14,13 @@ class InitializeIndexes extends \Symfony\Component\Console\Command\Command
1414
1515 public function __construct (
1616 \Spameri \Elastic \Model \EntitySettingsLocator $ entitySettingsLocator ,
17- \Spameri \Elastic \Model \Indices \ Delete $ delete ,
17+ \Spameri \Elastic \Model \DeleteIndex $ deleteIndex ,
1818 \Spameri \Elastic \Model \InitializeIndex $ initializeIndex
1919 )
2020 {
2121 parent ::__construct (NULL );
2222 $ this ->entitySettingsLocator = $ entitySettingsLocator ;
23- $ this ->delete = $ delete ;
23+ $ this ->deleteIndex = $ deleteIndex ;
2424 $ this ->initializeIndex = $ initializeIndex ;
2525 }
2626
@@ -66,7 +66,7 @@ protected function execute(
6666
6767 if ($ forcedDelete ) {
6868 try {
69- $ this ->delete ->execute ($ settings ->indexName ());
69+ $ this ->deleteIndex ->execute ($ settings ->indexName ());
7070 $ output ->writeln ('Index ' . $ settings ->indexName () . ' deleted. ' );
7171
7272 } catch (\Spameri \Elastic \Exception \ElasticSearch $ exception ) {
You can’t perform that action at this time.
0 commit comments