19declare(strict_types=1);
21use Psr\Http\Message\ServerRequestInterface;
28 private readonly ServerRequestInterface
$request;
34 ?ServerRequestInterface
$request =
null,
42 $this->
logger = $logger ??
$DIC->logger()->cert();
45 $this->
language->loadLanguageModule(
'cert');
50 $cmd = $this->
ctrl->getCmd();
66 $certificate_id = (
int) $this->request->getQueryParams()[
'certificate_id'];
68 $certificate = $repo->fetchCertificate($certificate_id);
73 $this->
language->txt(
'error_creating_certificate_pdf')
74 ))->withLogger($this->
logger);
76 $certificate->getUserId(),
77 $certificate->getObjId()
Just a wrapper class to create Unit Test for other classes.
Component logger with individual log levels by component id.
final const string CMD_DOWNLOAD
__construct(?ilLanguage $language=null, ?ServerRequestInterface $request=null, ?ilLogger $logger=null, ?ilCtrlInterface $ctrl=null)
readonly ServerRequestInterface $request
readonly ilLogger $logger
readonly ilCtrlInterface $ctrl
readonly ilLanguage $language
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...