File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,13 @@ protected function handle()
2525
2626 if (file_exists ($ appConfigFile )) {
2727 $ this ->error ('Queue config already exists ' );
28+
2829 return 1 ;
2930 }
3031
3132 if (!copy (__DIR__ . '/stubs/config.stub ' , $ appConfigFile )) {
3233 $ this ->error ('Failed to generate queue config ' );
34+
3335 return 1 ;
3436 }
3537
Original file line number Diff line number Diff line change 44
55use Aloe \Command ;
66use Aloe \Core ;
7- use Leaf \Queue ;
87
98class QueueInstallCommand extends Command
109{
@@ -31,11 +30,13 @@ protected function handle()
3130
3231 if (file_exists ($ migrationFile )) {
3332 $ this ->error ('Queue migration already exists ' );
33+
3434 return 1 ;
3535 }
3636
3737 if (!copy (__DIR__ . '/stubs/migration.stub ' , $ migrationFile )) {
3838 $ this ->error ('Failed to generate queue migration ' );
39+
3940 return 1 ;
4041 }
4142
@@ -44,10 +45,12 @@ protected function handle()
4445
4546 if (!\Aloe \Core::run ('php leaf db:migrate -f jobs ' , $ this ->output )) {
4647 $ this ->error ('Failed to run queue migration ' );
48+
4749 return 1 ;
4850 }
4951
5052 $ this ->info ('Queue migration ran successfully ' );
53+
5154 return 0 ;
5255 }
5356}
You can’t perform that action at this time.
0 commit comments