diff --git a/Classes/Command/IndexCommand.php b/Classes/Command/IndexCommand.php index aaaa5f1..0cc84ea 100644 --- a/Classes/Command/IndexCommand.php +++ b/Classes/Command/IndexCommand.php @@ -142,7 +142,7 @@ protected function fullSync(): void $this->client->indices()->create(['index' => $index]); } else { $this->io->error("Exception: " . $e->getMessage()); - $this->log->error('Bibliography sync unsuccessful. Error creating elasticsearch index.'); + $this->logger->error('Bibliography sync unsuccessful. Error creating elasticsearch index.'); die; } } @@ -164,7 +164,7 @@ protected function fullSync(): void $this->io->newline(1); if ($apiCounter == 0) { $this->io->note('Giving up after ' . self::API_TRIALS . ' trials.'); - $this->log->error('Bibliography sync unsuccessful. Zotero API sent {trials} 500 errors.', ['trials' => self::API_TRIALS]); + $this->logger->error('Bibliography sync unsuccessful. Zotero API sent {trials} 500 errors.', ['trials' => self::API_TRIALS]); die; } else { $this->io->note('Trying again. ' . --$apiCounter . ' trials left.'); @@ -188,7 +188,7 @@ protected function versionedSync(int $version): void $this->io->newline(1); if ($apiCounter == 0) { $this->io->note('Giving up after ' . self::API_TRIALS . ' trials.'); - $this->log->warning('Bibliography sync unseccessful. Zotero API sent {trials} 500 errors.', ['trials' => self::API_TRIALS]); + $this->logger->warning('Bibliography sync unseccessful. Zotero API sent {trials} 500 errors.', ['trials' => self::API_TRIALS]); die; } else { $this->io->note('Trying again. ' . --$apiCounter . ' trials left.'); diff --git a/composer.json b/composer.json index aa2ee7f..0a6839e 100644 --- a/composer.json +++ b/composer.json @@ -8,9 +8,10 @@ "require": { "typo3/cms-core": "^12", "typo3/cms-fluid-styled-content": "^12", + "typo3/cms-scheduler": "^12", "dikastes/zotero-api": "^1.2", "elasticsearch/elasticsearch": "^7", - "illuminate/collections": "^9", + "illuminate/collections": "^11", "slub/liszt-common": "@dev" }, "require-dev": {