Skip to content

Commit 0b39b4c

Browse files
committed
fix: add MakeExecuteCommand to service provider and update command registration order
1 parent 3174738 commit 0b39b4c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/Console/MakeExecuteCommand.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace Pharaonic\Laravel\Executor\Console;
4+
5+
class MakeExecuteCommand extends ExecuteMakeCommand
6+
{
7+
/**
8+
* The name and signature of the console command.
9+
*
10+
* @var string
11+
*/
12+
protected $signature = 'make:execute {name}
13+
{--path= : The path of the executor}';
14+
15+
}

src/ExecutorServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Pharaonic\Laravel\Executor\Console\ExecuteMakeCommand;
1111
use Pharaonic\Laravel\Executor\Console\ExecuteRollbackCommand;
1212
use Pharaonic\Laravel\Executor\Console\ExecuteStatusCommand;
13+
use Pharaonic\Laravel\Executor\Console\MakeExecuteCommand;
1314

1415
class ExecutorServiceProvider extends ServiceProvider
1516
{
@@ -47,8 +48,9 @@ public function boot()
4748
);
4849

4950
$this->commands([
50-
ExecuteCommand::class,
51+
MakeExecuteCommand::class,
5152
ExecuteMakeCommand::class,
53+
ExecuteCommand::class,
5254
ExecuteRollbackCommand::class,
5355
ExecuteFreshCommand::class,
5456
ExecuteStatusCommand::class,

0 commit comments

Comments
 (0)