fix styling issues in PDF invoice (#2097)
This commit is contained in:
@@ -55,8 +55,8 @@ class EncoreExtension extends AbstractExtension implements ServiceSubscriberInte
|
||||
|
||||
public function getEncoreEntryCssSource(string $packageName): string
|
||||
{
|
||||
$files = $this->container
|
||||
->get(EntrypointLookupInterface::class)->getCssFiles($packageName);
|
||||
$lookup = $this->container->get(EntrypointLookupInterface::class);
|
||||
$files = $lookup->getCssFiles($packageName);
|
||||
|
||||
$source = '';
|
||||
|
||||
@@ -64,6 +64,8 @@ class EncoreExtension extends AbstractExtension implements ServiceSubscriberInte
|
||||
$source .= file_get_contents($this->publicDir . '/' . $file);
|
||||
}
|
||||
|
||||
$lookup->reset();
|
||||
|
||||
return $source;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user