Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit dbfa6cc

Browse files
committed
adapt to Laravel v5.5 changes - rename fire method to handle
1 parent 7b7e1f7 commit dbfa6cc

20 files changed

+26
-26
lines changed

src/Command.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function execute(InputInterface $input, OutputInterface $output)
6060
$this->input = $input;
6161
$this->output = $output;
6262

63-
return (int) $this->fire();
63+
return (int) $this->handle();
6464
}
6565

6666
/**

src/Commands/ChangeSourceNamespaceCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function __construct()
6969
/**
7070
* Execute the console command.
7171
*/
72-
public function fire()
72+
public function handle()
7373
{
7474
try {
7575
$this->setAppDirectoryNamespace();

src/Commands/ControllerMakeCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ControllerMakeCommand extends SymfonyCommand
5454
*
5555
* @return bool|null
5656
*/
57-
public function fire()
57+
public function handle()
5858
{
5959
$generator = new ControllerGenerator();
6060

src/Commands/FeatureDeleteCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class FeatureDeleteCommand extends SymfonyCommand
5353
*
5454
* @return bool|null
5555
*/
56-
public function fire()
56+
public function handle()
5757
{
5858
try {
5959
$service = Str::service($this->argument('service'));

src/Commands/FeatureDescribeCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class FeatureDescribeCommand extends Command
4343
*
4444
* @return bool|null
4545
*/
46-
public function fire()
46+
public function handle()
4747
{
4848
if ($feature = $this->findFeature($this->argument('feature'))) {
4949
$parser = new Parser();

src/Commands/FeatureMakeCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class FeatureMakeCommand extends SymfonyCommand
5454
*
5555
* @return bool|null
5656
*/
57-
public function fire()
57+
public function handle()
5858
{
5959
try {
6060
$service = studly_case($this->argument('service'));

src/Commands/FeaturesListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class FeaturesListCommand extends SymfonyCommand
4343
*
4444
* @return bool|null
4545
*/
46-
public function fire()
46+
public function handle()
4747
{
4848
foreach ($this->listFeatures($this->argument('service')) as $service => $features) {
4949
$this->comment("\n$service\n");

src/Commands/JobDeleteCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class JobDeleteCommand extends SymfonyCommand
5353
*
5454
* @return bool|null
5555
*/
56-
public function fire()
56+
public function handle()
5757
{
5858
try {
5959
$domain = studly_case($this->argument('domain'));

src/Commands/JobMakeCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class JobMakeCommand extends SymfonyCommand
5555
*
5656
* @return bool|null
5757
*/
58-
public function fire()
58+
public function handle()
5959
{
6060
$generator = new JobGenerator();
6161

src/Commands/ModelDeleteCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ModelDeleteCommand extends SymfonyCommand
4949
*
5050
* @return bool|null
5151
*/
52-
public function fire()
52+
public function handle()
5353
{
5454
try {
5555
$model = $this->parseModelName($this->argument('model'));
@@ -98,4 +98,4 @@ public function parseModelName($name)
9898
{
9999
return Str::model($name);
100100
}
101-
}
101+
}

src/Commands/ModelMakeCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ModelMakeCommand extends SymfonyCommand
4949
*
5050
* @return bool|null
5151
*/
52-
public function fire()
52+
public function handle()
5353
{
5454
$generator = new ModelGenerator();
5555

@@ -89,4 +89,4 @@ public function getStub()
8989
{
9090
return __DIR__ . '/../Generators/stubs/model.stub';
9191
}
92-
}
92+
}

src/Commands/OperationDeleteCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class OperationDeleteCommand extends SymfonyCommand
5353
*
5454
* @return bool|null
5555
*/
56-
public function fire()
56+
public function handle()
5757
{
5858
try {
5959
$service = Str::service($this->argument('service'));

src/Commands/OperationMakeCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class OperationMakeCommand extends SymfonyCommand
5555
*
5656
* @return bool|null
5757
*/
58-
public function fire()
58+
public function handle()
5959
{
6060
$generator = new OperationGenerator();
6161

src/Commands/PolicyDeleteCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class PolicyDeleteCommand extends SymfonyCommand
4949
*
5050
* @return bool|null
5151
*/
52-
public function fire()
52+
public function handle()
5353
{
5454
try {
5555
$policy = $this->parsePolicyName($this->argument('policy'));
@@ -98,4 +98,4 @@ public function parsePolicyName($name)
9898
{
9999
return Str::policy($name);
100100
}
101-
}
101+
}

src/Commands/PolicyMakeCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class PolicyMakeCommand extends SymfonyCommand
4949
*
5050
* @return bool|null
5151
*/
52-
public function fire()
52+
public function handle()
5353
{
5454
$generator = new PolicyGenerator();
5555

@@ -89,4 +89,4 @@ public function getStub()
8989
{
9090
return __DIR__ . '/../Generators/stubs/policy.stub';
9191
}
92-
}
92+
}

src/Commands/RequestDeleteCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class RequestDeleteCommand extends SymfonyCommand
4949
*
5050
* @return bool|null
5151
*/
52-
public function fire()
52+
public function handle()
5353
{
5454
try {
5555
$request = $this->parseRequestName($this->argument('request'));
@@ -100,4 +100,4 @@ public function parseRequestName($name)
100100
{
101101
return Str::request($name);
102102
}
103-
}
103+
}

src/Commands/RequestMakeCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class RequestMakeCommand extends SymfonyCommand
4949
*
5050
* @return bool|null
5151
*/
52-
public function fire()
52+
public function handle()
5353
{
5454
$generator = new RequestGenerator();
5555

@@ -91,4 +91,4 @@ public function getStub()
9191
{
9292
return __DIR__ . '/../Generators/stubs/request.stub';
9393
}
94-
}
94+
}

src/Commands/ServiceDeleteCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function getStub()
7070
*
7171
* @return bool|null
7272
*/
73-
public function fire()
73+
public function handle()
7474
{
7575
if ($this->isMicroservice()) {
7676
return $this->error('This functionality is disabled in a Microservice');

src/Commands/ServiceMakeCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function getStub()
7070
*
7171
* @return bool|null
7272
*/
73-
public function fire()
73+
public function handle()
7474
{
7575
try {
7676
$name = $this->argument('name');

src/Commands/ServicesListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ServicesListCommand extends SymfonyCommand
3737
*/
3838
protected $description = 'List the services in this project.';
3939

40-
public function fire()
40+
public function handle()
4141
{
4242
$services = $this->listServices()->all();
4343

0 commit comments

Comments
 (0)