1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-19 07:36:17 +02:00

add checks for required curl extension

This commit is contained in:
Thomas Müller
2021-07-27 19:50:08 +02:00
parent 7131256475
commit d76d691acf
4 changed files with 16 additions and 0 deletions

View File

@@ -90,6 +90,10 @@ class TelegramBotHandler extends AbstractProcessingHandler
bool $disableWebPagePreview = null,
bool $disableNotification = null
) {
if (!extension_loaded('curl')) {
throw new MissingExtensionException('The curl extension is needed to use the TelegramBotHandler');
}
parent::__construct($level, $bubble);
$this->apiKey = $apiKey;