Skip to content

Commit 6e9022b

Browse files
committed
small compatibility fix for older laravel versions
1 parent 025cdc9 commit 6e9022b

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

src/CreateEmailTableCommand.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(Filesystem $files, Composer $composer)
5555
*
5656
* @return void
5757
*/
58-
public function fire()
58+
public function handle()
5959
{
6060
$table = 'emails';
6161

@@ -68,6 +68,16 @@ public function fire()
6868
$this->composer->dumpAutoloads();
6969
}
7070

71+
/**
72+
* Execute the console command (backwards compatibility for Laravel 5.4 and below).
73+
*
74+
* @return void
75+
*/
76+
public function fire()
77+
{
78+
$this->handle();
79+
}
80+
7181
/**
7282
* Create a base migration file for the table.
7383
*

src/RetryFailedEmailsCommand.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(Store $store)
4242
/**
4343
* Execute the console command.
4444
*
45-
* @return mixed
45+
* @return void
4646
*/
4747
public function handle()
4848
{
@@ -61,4 +61,14 @@ public function handle()
6161

6262
$this->info('Reset ' . $emails->count() . ' ' . ngettext('e-mail', 'e-mails', $emails->count()) . '!');
6363
}
64+
65+
/**
66+
* Execute the console command (backwards compatibility for Laravel 5.4 and below).
67+
*
68+
* @return void
69+
*/
70+
public function fire()
71+
{
72+
$this->handle();
73+
}
6474
}

src/SendEmailsCommand.php

+10
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ public function handle()
7272
$this->result($emails);
7373
}
7474

75+
/**
76+
* Execute the console command (backwards compatibility for Laravel 5.4 and below).
77+
*
78+
* @return void
79+
*/
80+
public function fire()
81+
{
82+
$this->handle();
83+
}
84+
7585
/**
7686
* Output a table with the cronjob result.
7787
*

0 commit comments

Comments
 (0)