From 2331ef25e3ab3bebf60a2e9aab284e9d51a36293 Mon Sep 17 00:00:00 2001 From: Tom Stovall Date: Wed, 13 Nov 2024 13:09:13 -0800 Subject: [PATCH] Fixing logger factory --- src/Services/SchemaPoster.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Services/SchemaPoster.php b/src/Services/SchemaPoster.php index 6ffe6f05..477bb9ac 100644 --- a/src/Services/SchemaPoster.php +++ b/src/Services/SchemaPoster.php @@ -58,6 +58,8 @@ class SchemaPoster implements LoggerAwareInterface { */ protected $moduleExtensionList; + protected LoggerChannelFactoryInterface $loggerFactory; + /** * Class Constructor. */ @@ -68,6 +70,7 @@ public function __construct( ModuleExtensionList $module_extension_list ) { $this->logger = $logger_factory->get('PantheonSearch'); + $this->loggerFactory = $logger_factory; $this->client = $client; $this->entityTypeManager = $entity_type_manager; $this->moduleExtensionList = $module_extension_list; @@ -123,7 +126,7 @@ public function postSchema(string $server_id, $files = []): array { * @throws \Drupal\search_api_pantheon\Exceptions\PantheonSearchApiException */ public function reloadServer(): void { - $reload = new Reload($this->logger, $this->client); + $reload = new Reload($this->loggerFactory, $this->client); $reload->reloadServer(); }