diff --git a/composer.json b/composer.json index a58be80..cd782c1 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,7 @@ "nette/utils": "^3.0", "latte/latte": "^2.5", "baraja-core/localization": "^2.0", + "baraja-core/dynamic-configuration": "^2.0", "baraja-core/html-to-text": "^2.0", "baraja-core/doctrine": "^3.0", "baraja-core/doctrine-mail-message": "^2.0" diff --git a/src/Entity/Configuration.php b/src/Entity/Configuration.php index 051b213..06f25bf 100644 --- a/src/Entity/Configuration.php +++ b/src/Entity/Configuration.php @@ -28,6 +28,9 @@ final class Configuration private array $adminEmails; + /** + * @param string[] $adminEmails + */ public function __construct(string $tempDir, bool $useQueue, array $adminEmails = []) { $this->tempDir = $tempDir; diff --git a/src/Renderer/BaseTemplateRenderer.php b/src/Renderer/BaseTemplateRenderer.php index 01ca2e3..84e7610 100644 --- a/src/Renderer/BaseTemplateRenderer.php +++ b/src/Renderer/BaseTemplateRenderer.php @@ -22,9 +22,13 @@ abstract class BaseTemplateRenderer implements Renderer private string $tempDir; + /** @var mixed[] */ private array $defaultParameters; + /** + * @param mixed[] $defaultParameters + */ final public function injectPrimary( string $tempDir, Localization $localization, diff --git a/src/Send/QueueRunner.php b/src/Send/QueueRunner.php index 993a9c1..b51f5c7 100644 --- a/src/Send/QueueRunner.php +++ b/src/Send/QueueRunner.php @@ -137,7 +137,7 @@ private function process(Email $email): void $this->logger->log( Log::LEVEL_INFO, 'E-mail was successfully sent to ' - . '"' . ($email->getMessage() === null ? '???' : $email->getMessage()->getTo()) . '" ' + . '"' . $email->getMessage()->getTo() . '" ' . 'with subject "' . trim($message->getSubject() ?? 'NULL') . '". ' . 'Preparation took "' . Helper::formatMicroTime((int) $email->getPreparingDuration()) . '" ' . 'and sending took "' . Helper::formatMicroTime((int) $email->getSendingDuration()) . '"',