Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit 5ab154e

Browse files
committed
Updated commands interface
1 parent 427dc32 commit 5ab154e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/Console/ElasticIndexCreateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ElasticIndexCreateCommand extends Command
1515

1616
protected $description = 'Create an Elasticsearch index';
1717

18-
public function fire()
18+
public function handle()
1919
{
2020
if (!$configurator = $this->getIndexConfigurator()) {
2121
return;

src/Console/ElasticIndexDropCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ElasticIndexDropCommand extends Command
1515

1616
protected $description = 'Drop an Elasticsearch index';
1717

18-
public function fire()
18+
public function handle()
1919
{
2020
if (!$configurator = $this->getIndexConfigurator()) {
2121
return;

src/Console/ElasticIndexUpdateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ElasticIndexUpdateCommand extends Command
1616

1717
protected $description = 'Update settings and mappings of an Elasticsearch index';
1818

19-
public function fire()
19+
public function handle()
2020
{
2121
if (!$configurator = $this->getIndexConfigurator()) {
2222
return;

src/Console/ElasticUpdateMappingCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ElasticUpdateMappingCommand extends Command
1515

1616
protected $description = 'Update a model mapping';
1717

18-
public function fire() {
18+
public function handle() {
1919
$model = $this->getModel();
2020

2121
$configurator = $model->getIndexConfigurator();

src/Console/SearchableModelMakeCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected function buildClass($name)
5252
return $stub;
5353
}
5454

55-
public function fire()
55+
public function handle()
5656
{
5757
$indexConfigurator = $this->getIndexConfigurator();
5858

@@ -72,6 +72,6 @@ public function fire()
7272
}
7373

7474

75-
parent::fire();
75+
parent::handle();
7676
}
7777
}

0 commit comments

Comments
 (0)