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
@@ -46,10 +47,12 @@ protected function handle()
4647
4748 if (!\Aloe \Core::run ("php leaf db:migrate -f $ filename " , $ this ->output )) {
4849 $ this ->error ('Failed to run queue migration ' );
50+
4951 return 1 ;
5052 }
5153
5254 $ this ->info ('Queue migration ran successfully ' );
55+
5356 return 0 ;
5457 }
5558}
You can’t perform that action at this time.
0 commit comments