From 273a8bd76c0488af09650b4a5c9f3fcb2df06aa4 Mon Sep 17 00:00:00 2001 From: Lau Ernebjerg Josefsen <44977457+LauJosefsen@users.noreply.github.com> Date: Mon, 19 Feb 2024 14:08:44 +0100 Subject: [PATCH] Fix for serializable config (#24) * Fix for serializable config * Fix for serializable config --- composer.json | 2 +- src/FilebeatLogging/FilebeatLoggingServiceProvider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0eaf3f0..ef50861 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require": { "php": "^8.2", - "cego/filebeat-logger": "^2.0.5", + "cego/filebeat-logger": "^2.0.6", "illuminate/support": "^7.0|^8.0|^9.0|^10.0", "illuminate/contracts": "^7.0|^8.0|^9.0|^10.0", "ext-json": "*", diff --git a/src/FilebeatLogging/FilebeatLoggingServiceProvider.php b/src/FilebeatLogging/FilebeatLoggingServiceProvider.php index 876e709..6844b42 100644 --- a/src/FilebeatLogging/FilebeatLoggingServiceProvider.php +++ b/src/FilebeatLogging/FilebeatLoggingServiceProvider.php @@ -26,7 +26,7 @@ public function register(): void 'extras' => json_decode(env('FILEBEAT_LOGGER_EXTRAS', '{}'), associative: true, flags: JSON_THROW_ON_ERROR), 'stream' => env('FILEBEAT_LOGGER_STREAM', 'php://stdout'), 'rotating' => env('FILEBEAT_LOGGER_ROTATING', false), - 'httpContextProcessor' => new RequestProcessor(), + 'httpContextProcessor' => RequestProcessor::class, 'via' => FilebeatLoggerFactory::class, ];