allow to delete invoice documents (#2968)

This commit is contained in:
Kevin Papst
2021-11-24 10:30:49 +01:00
committed by GitHub
parent ff9acab0fc
commit b062164277
12 changed files with 362 additions and 23 deletions

View File

@@ -50,6 +50,14 @@ final class InvoiceDocumentRepository
return $this;
}
/**
* @codeCoverageIgnore
*/
public function remove(InvoiceDocument $invoiceDocument): void
{
@unlink($invoiceDocument->getFilename());
}
/**
* @deprecated since 1.10 - will be removed with 2.0 - use getUploadDirectory() instead
*/