Skip to content

Commit

Permalink
Fixing logger factory
Browse files Browse the repository at this point in the history
  • Loading branch information
stovak committed Nov 13, 2024
1 parent 0e0449f commit 2331ef2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Services/SchemaPoster.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class SchemaPoster implements LoggerAwareInterface {
*/
protected $moduleExtensionList;

protected LoggerChannelFactoryInterface $loggerFactory;

/**
* Class Constructor.
*/
Expand All @@ -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;
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 2331ef2

Please sign in to comment.