fix: [internal] Throw exception if BackgroundJobsTool is not properly configured

pull/8568/head
Jakub Onderka 2022-08-11 16:29:20 +02:00
parent 8594e61d2c
commit 38ba34d4f6
1 changed files with 4 additions and 0 deletions

View File

@ -629,6 +629,10 @@ class BackgroundJobsTool
];
}
if (!isset($this->settings['supervisor_host'])) {
throw new RuntimeException("Required option `supervisor_host` for BackgroundJobsTool is not set.");
}
$host = null;
if (substr($this->settings['supervisor_host'], 0, 5) === 'unix:') {
if (!defined('CURLOPT_UNIX_SOCKET_PATH')) {