mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-29 23:46:10 +00:00
ref
This commit is contained in:
@@ -32,7 +32,6 @@ namespace Espo\Tools\Pdf\Dompdf;
|
||||
use Dompdf\Dompdf;
|
||||
use Dompdf\Options;
|
||||
use Espo\Core\Utils\Config;
|
||||
use Espo\ORM\Entity;
|
||||
use Espo\Tools\Pdf\Template;
|
||||
|
||||
class DompdfInitializer
|
||||
@@ -43,7 +42,7 @@ class DompdfInitializer
|
||||
private Config $config
|
||||
) {}
|
||||
|
||||
public function initialize(Template $template, ?Entity $entity = null): Dompdf
|
||||
public function initialize(Template $template): Dompdf
|
||||
{
|
||||
$options = new Options();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class EntityPrinter implements EntityPrinterInterface
|
||||
|
||||
public function print(Template $template, Entity $entity, Params $params, Data $data): Contents
|
||||
{
|
||||
$pdf = $this->dompdfInitializer->initialize($template, $entity);
|
||||
$pdf = $this->dompdfInitializer->initialize($template);
|
||||
|
||||
$headHtml = $this->htmlComposer->composeHead($template, $entity);
|
||||
$headerFooterHtml = $this->htmlComposer->composeHeaderFooter($template, $entity, $params, $data);
|
||||
|
||||
Reference in New Issue
Block a user