2022-03-02 13:38:15 +01:00
|
|
|
<?php
|
|
|
|
namespace Garradin;
|
|
|
|
use Garradin\Entities\Files\File;
|
|
|
|
|
|
|
|
// supprimer les fichiers créés
|
|
|
|
|
|
|
|
// signature par défaut
|
2022-03-03 12:09:52 +01:00
|
|
|
$default_signature_file = \Garradin\Files\Files::get('skel/plugin/recusfiscaux/default_signature.png');
|
|
|
|
$default_signature_file->delete();
|
2022-03-02 13:38:15 +01:00
|
|
|
|
|
|
|
// signature réelle
|
2022-03-03 12:09:52 +01:00
|
|
|
$signature = $plugin->getConfig('signature');
|
|
|
|
if (null !== $signature) {
|
|
|
|
\Garradin\Files\Files::get($signature)->delete();
|
|
|
|
}
|