Skip to content

Commit

Permalink
[TASK] cleanup renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
kaystrobach authored Jun 20, 2022
1 parent 847b9a7 commit db56163
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions Classes/Renderer/MPdfRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ class MPdfRenderer extends AbstractRenderer
*/
protected $environment;

/**
* @var \Neos\Flow\Log\PsrSystemLoggerInterface
* @Flow\Inject
*/
protected $systemLogger;

/**
* @Flow\InjectConfiguration
* @var array
Expand All @@ -33,7 +27,6 @@ class MPdfRenderer extends AbstractRenderer
*/
protected function initLibrary()
{
$this->systemLogger->debug('You are still using deprecated initLibrary call');
}

/**
Expand Down Expand Up @@ -73,23 +66,13 @@ protected function convert($html = '')
$mpdf->setAutoTopMargin = true;
$mpdf->setAutoBottomMargin = true;

$this->systemLogger->debug(
'Pdf settings: ',
[
'watermark' => $this->settings['Renderers']['Mpdf']['WatermarkText'],
'tempDir' => $tempDir,
'debug' => $mpdf->debug,
'orientation' => $mpdf->CurOrientation
]
);

$mpdf->WriteHTML($html);
return $mpdf->Output(
'',
Destination::STRING_RETURN
);
} catch (\Mpdf\MpdfException $e) {
$this->systemLogger->emergency($e->getMessage());
throw $e;
}
return null;
}
Expand Down

0 comments on commit db56163

Please sign in to comment.