Skip to content

Firefly III: a personal finances manager

Fix tests, expand flush routine.

James Coleb1b6fe553a0b
diff --git a/app/Generator/Report/Standard/MultiYearReportGenerator.php b/app/Generator/Report/Standard/MultiYearReportGenerator.php
index 7bc83c6dc7..8910fe2fe0 100644
--- a/app/Generator/Report/Standard/MultiYearReportGenerator.php
+++ b/app/Generator/Report/Standard/MultiYearReportGenerator.php
@@ -98,6 +98,16 @@ class MultiYearReportGenerator implements ReportGeneratorInterface
return $this;
}
+ /**
+ * @param Collection $expense
+ *
+ * @return ReportGeneratorInterface
+ */
+ public function setExpense(Collection $expense): ReportGeneratorInterface
+ {
+ return $this;
+ }
+
/**
* @param Carbon $date
*
diff --git a/app/Generator/Report/Standard/YearReportGenerator.php b/app/Generator/Report/Standard/YearReportGenerator.php
index fc591c0e97..06bced562e 100644
--- a/app/Generator/Report/Standard/YearReportGenerator.php
+++ b/app/Generator/Report/Standard/YearReportGenerator.php
@@ -98,6 +98,16 @@ class YearReportGenerator implements ReportGeneratorInterface
return $this;
}
+ /**
+ * @param Collection $expense
+ *
+ * @return ReportGeneratorInterface
+ */
+ public function setExpense(Collection $expense): ReportGeneratorInterface
+ {
+ return $this;
+ }
+
/**
* @param Carbon $date
*
diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php
index 0632f35c37..8d432147a1 100644
--- a/app/Http/Controllers/HomeController.php
+++ b/app/Http/Controllers/HomeController.php
@@ -164,7 +164,17 @@ class HomeController extends Controller
{
Preferences::mark();
$request->session()->forget(['start', 'end', '_previous', 'viewRange', 'range', 'is_custom_range']);
+ Log::debug('Call cache:clear...');
Artisan::call('cache:clear');
+ Log::debug('Call config:clear...');
+ Artisan::call('config:clear');
+ Log::debug('Call route:clear...');
+ Artisan::call('route:clear');
+ Log::debug('Call twig:clean...');
+ Artisan::call('twig:clean');
+ Log::debug('Call view:clear...');
+ Artisan::call('view:clear');
+ Log::debug('Done! Redirecting...');
return redirect(route('index'));
}