Skip to content

Commit

Permalink
Provide default values for important config keys
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Aug 26, 2022
1 parent 2e9706e commit 71c627a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/IgnitionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,16 @@ 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)
);
}
);

$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)
);
});
}
Expand Down

0 comments on commit 71c627a

Please sign in to comment.