From 30c82ecb1608a2443ecaa8617ca33be29f812174 Mon Sep 17 00:00:00 2001 From: KIMOTO Nobuhiko Date: Tue, 30 Aug 2022 18:38:26 +0900 Subject: [PATCH] ref #95 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit アンインストール時に配信履歴データを削除する --- PluginManager.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PluginManager.php b/PluginManager.php index dfb292c..5f37cc7 100644 --- a/PluginManager.php +++ b/PluginManager.php @@ -13,8 +13,18 @@ namespace Plugin\MailMagazine42; +namespace Plugin\MailMagazine42; + use Eccube\Plugin\AbstractPluginManager; +use Symfony\Component\DependencyInjection\ContainerInterface; +use Symfony\Component\Filesystem\Filesystem; class PluginManager extends AbstractPluginManager { + + public function uninstall(array $meta, ContainerInterface $container) + { + $file = new Filesystem(); + $file->remove($container->getParameter('mail_magazine_dir')); + } }