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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user