deleteListeners example



class Migrations_Migration477 extends Shopware\Components\Migrations\AbstractMigration
{
    public function up($modus)
    {
        if ($modus !== self::MODUS_INSTALL) {
            return;
        }
        $this->fetchPluginId();
        $this->deleteConfigElements();
        $this->deleteListeners();
        $this->uninstallPlugin();
    }

    private function fetchPluginId()
    {
        $sql = <<<SQL SET @pluginId = ( SELECT id FROM s_core_plugins WHERE name LIKE "TagCloud" AND author LIKE "shopware AG" LIMIT 1 );


class Migrations_Migration421 extends Shopware\Components\Migrations\AbstractMigration
{
    public function up($modus)
    {
        $this->fetchPluginId();
        $this->deleteConfigElements();
        $this->deleteListeners();
        $this->deletePlugin();
    }

    private function fetchPluginId()
    {
        $sql = <<<SQL SET @pluginId = ( SELECT id FROM s_core_plugins WHERE name LIKE "StoreApi" AND author LIKE "shopware AG" LIMIT 1 );


class Migrations_Migration420 extends Shopware\Components\Migrations\AbstractMigration
{
    public function up($modus)
    {
        $this->fetchPluginId();
        $this->deleteListeners();
        $this->deleteMenuItem();
        $this->deletePlugin();
    }

    private function fetchPluginId()
    {
        $sql = <<<SQL SET @pluginId = ( SELECT id FROM s_core_plugins WHERE name LIKE "PluginManager" AND author LIKE "shopware AG" LIMIT 1 );


class Migrations_Migration458 extends Shopware\Components\Migrations\AbstractMigration
{
    public function up($modus)
    {
        $this->fetchPluginId();
        $this->deleteConfigElements();
        $this->deleteListeners();
        $this->deletePlugin();
    }

    private function fetchPluginId()
    {
        $sql = <<<SQL SET @pluginId = ( SELECT id FROM s_core_plugins WHERE name LIKE "SelfHealing" AND author LIKE "shopware AG" LIMIT 1 );
Home | Imprint | This part of the site doesn't use cookies.