added action to reload twig invoice template (#3876)

This commit is contained in:
Kevin Papst
2023-02-25 19:10:29 +01:00
committed by GitHub
parent 266c4bad25
commit a9849fc6cf
6 changed files with 63 additions and 18 deletions

View File

@@ -37,6 +37,11 @@ final class InvoiceDocument
return $path;
}
public function isTwig(): bool
{
return $this->getFileExtension() === 'twig';
}
public function getFileExtension(): string
{
return $this->file->getExtension();