19declare(strict_types=1);
21use ceLTIc\LTI\Http\ClientInterface;
22use ceLTIc\LTI\Http\HttpMessage;
38 if ($this->
client ===
null) {
39 $this->
logger->error(
'LTI call {method} {url} not sent: PHP has neither cURL nor allow_url_fopen', [
40 'method' => $message->getMethod(),
46 $start = hrtime(
true);
47 $ok = $this->
client->send($message);
48 $this->
logger->debug(
'LTI call {method} {url}: {status} in {ms} ms{error}', [
49 'method' => $message->getMethod(),
52 'ms' => intdiv(hrtime(
true) - $start, 1_000_000),
The HTTP client of celtic/lti, which logs how each call of ILIAS to a platform or a tool ended and ho...
__construct(private ?ClientInterface $client, private ilLogger $logger)
send(HttpMessage $message)
static hideSecrets(string $message)
The message without the secrets it may hold.
Component logger with individual log levels by component id.