From 71c627a0838f107562e89bc2b0201a81f26e9011 Mon Sep 17 00:00:00 2001 From: Alex Vanderbist Date: Fri, 26 Aug 2022 15:28:24 +0200 Subject: [PATCH] Provide default values for important config keys --- src/IgnitionServiceProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IgnitionServiceProvider.php b/src/IgnitionServiceProvider.php index f752162b..73cbdbee 100644 --- a/src/IgnitionServiceProvider.php +++ b/src/IgnitionServiceProvider.php @@ -166,8 +166,8 @@ protected function registerRecorders(): void function (Application $app): QueryRecorder { return new QueryRecorder( $app, - config()->get('flare.flare_middleware.' . AddQueries::class . '.report_query_bindings'), - config()->get('flare.flare_middleware.' . AddQueries::class . '.maximum_number_of_collected_queries') + config('flare.flare_middleware.' . AddQueries::class . '.report_query_bindings', true), + config('flare.flare_middleware.' . AddQueries::class . '.maximum_number_of_collected_queries', 200) ); } ); @@ -175,7 +175,7 @@ function (Application $app): QueryRecorder { $this->app->singleton(JobRecorder::class, function (Application $app): JobRecorder { return new JobRecorder( $app, - config()->get('flare.flare_middleware.' . AddJobs::class . '.max_chained_job_reporting_depth') + config('flare.flare_middleware.' . AddJobs::class . '.max_chained_job_reporting_depth', 5) ); }); }