Skip to content

Firefly III: a personal finances manager

Expand schedule.

James Cole72cca5ccbf63
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php
index 20350913e4..23c1135e92 100644
--- a/app/Console/Kernel.php
+++ b/app/Console/Kernel.php
@@ -32,7 +32,7 @@ use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
/**
- * File to make sure commnds work.
+ * File to make sure commands work.
*/
class Kernel extends ConsoleKernel
{
@@ -48,7 +48,7 @@ class Kernel extends ConsoleKernel
/**
* Register the commands for the application.
*/
- protected function commands()
+ protected function commands(): void
{
$this->load(__DIR__ . '/Commands');
@@ -59,8 +59,6 @@ class Kernel extends ConsoleKernel
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
- *
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
protected function schedule(Schedule $schedule): void
{
@@ -76,5 +74,15 @@ class Kernel extends ConsoleKernel
event(new AdminRequestedTestMessage($user, $ipAddress));
}
)->daily();
+
+ // send test email.
+ $schedule->call(
+ function () {
+ $ipAddress = '127.0.0.2';
+ /** @var User $user */
+ $user = User::find(1);
+ event(new AdminRequestedTestMessage($user, $ipAddress));
+ }
+ )->hourly();
}
}