From 08dd43658abc4eb3b95fdb7a8f43a3a008c00ed7 Mon Sep 17 00:00:00 2001 From: fkhan-bread Date: Fri, 15 Aug 2025 09:39:46 -0500 Subject: [PATCH] ASI-7612 Remove settings when extension is uninstalled --- Setup/Uninstall.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Setup/Uninstall.php diff --git a/Setup/Uninstall.php b/Setup/Uninstall.php new file mode 100644 index 0000000..aba745b --- /dev/null +++ b/Setup/Uninstall.php @@ -0,0 +1,36 @@ +resource = $resource; + } + + public function uninstall(SchemaSetupInterface $setup, ModuleContextInterface $context) + { + $connection = $this->resource->getConnection(); + $configTable = $this->resource->getTableName('core_config_data'); + + $connection->delete( + $configTable, + [ + $connection->quoteInto('path LIKE ?', 'payment/breadcheckout/%'), + $connection->quoteInto('path LIKE ?', 'payment/rbccheckout/%') + ] + ); + } +}