custom/plugins/KrmeAdvancedCMS/src/KrmeAdvancedCMS.php line 15

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. /*
  3.  * (c) KruseMedien GmbH <info@krusemedien.com>
  4.  * For the full copyright and license information, please view the LICENSE
  5.  * file that was distributed with this source code.
  6.  */
  7. namespace KrmeAdvancedCMS;
  8. use Doctrine\DBAL\Connection;
  9. use KrmeAdvancedCMS\Util\Lifecycle\Uninstaller;
  10. use Shopware\Core\Framework\Plugin;
  11. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  12. final class KrmeAdvancedCMS extends Plugin
  13. {
  14.     public function uninstall(UninstallContext $uninstallContext): void
  15.     {
  16.         parent::uninstall($uninstallContext);
  17.         $connection $this->container->get(Connection::class);
  18.         if ($connection instanceof Connection) {
  19.             (new Uninstaller(
  20.                 $uninstallContext,
  21.                 $connection
  22.             ))->uninstall();
  23.         }
  24.     }
  25. }