<?php declare(strict_types=1);
namespace Valkarch\FormBotBlocker;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Valkarch\FormBotBlocker\Installer\FormBotBlockerInstaller;
class ValkarchFormBotBlocker extends Plugin
{
public const PLUGIN_NAME = 'ValkarchFormBotBlocker';
public function uninstall(UninstallContext $uninstallContext): void
{
parent::uninstall($uninstallContext);
if ($uninstallContext->keepUserData()) {
return;
}
$formBotBlockerInstaller = new FormBotBlockerInstaller($this->container);
$formBotBlockerInstaller->uninstall();
}
/**
* Render templates before third-party plugins
*
* @return int
*/
public function getTemplatePriority(): int
{
return 5;
}
}