drupalcommerce / project-base

Provides a Composer template for a new Commerce 2.x project
GNU General Public License v2.0
54 stars 28 forks source link

Upgrade from swift mailer to symfony mailer #37

Open tarasiadis opened 2 years ago

tarasiadis commented 2 years ago

I have try to install symfony mailer and unistall swift mailer. As I can see to have a proper synfony mailer install, I have to remove mailsystem and swift mailer module, right? Can I use symfony mail with mailsystem and swift installed and enabled? But I cannot uninstall swift mailer as I get

The following reason prevents Swift Mailer from being uninstalled: Required by: commerce_base

I attach my composer.json here to help me how can I remove swift mailer and install symfony mailer

`{ "name": "drupalcommerce/project-base", "description": "Commerce 2.x project template", "type": "project", "license": "GPL-2.0-or-later", "authors": [ { "name": "", "role": "" } ], "repositories": { "drupal": { "type": "composer", "url": "https://packages.drupal.org/8" }, "commerce_base": { "type": "vcs", "url": "https://github.com/drupalcommerce/commerce_base" }, "asset-packagist": { "type": "composer", "url": "https://asset-packagist.org" }, "commerce-price-rule": { "type": "vcs", "url": "https://github.com/krystalcode/drupal8-commerce-price-rule" } }, "config": { "bin-dir": "bin", "sort-packages": true }, "require": { "php": ">=7.0.8", "ext-curl": "", "composer/installers": "^1.9", "cweagans/composer-patches": "~1.0", "drupal/address": "^1.8", "drupal/admin_toolbar": "^3.0", "drupal/adminimal_admin_toolbar": "^1.11", "drupal/adminimal_theme": "^1.6", "drupal/backup_migrate": "^5.0", "drupal/better_exposed_filters": "^5.0@beta", "drupal/betterlogin": "^1.5", "drupal/bootstrap_barrio": "^5.1", "drupal/bootstrap_basic_image_gallery": "^1.5", "drupal/captcha": "^1.1", "drupal/chosen": "^3.0", "drupal/commerce": "^2.26", "drupal/commerce_ajax_atc": "^1.0@alpha", "drupal/commerce_bcc_address_token": "^1.1", "drupal/commerce_cart_flyout": "^1.8", "drupal/commerce_feeds": "^1.0@alpha", "drupal/commerce_migrate": "^3.1@alpha", "drupal/commerce_price_rule": "1.x-dev@dev", "drupal/commerce_product_limits": "^1.0", "drupal/composer_deploy": "^1.6", "drupal/core-project-message": "^9", "drupal/core-recommended": "^9.3", "drupal/devel": "^4.0", "drupal/draggableviews": "^2.0", "drupal/easy_breadcrumb": "^2.0", "drupal/eu_cookie_compliance": "^1.19", "drupal/features": "^3.12", "drupal/feeds": "^3.0@alpha", "drupal/feeds_ex": "^1.0@alpha", "drupal/feeds_tamper": "^2.0@beta", "drupal/field_group": "^3.1", "drupal/field_permissions": "^1.1", "drupal/field_validation": "^1.0@beta", "drupal/filefield_paths": "^1.0@beta", "drupal/fontawesome": "^2.17", "drupal/ga": "^1.8", "drupal/gin": "^3.0", "drupal/gin_login": "^1.0", "drupal/gin_toolbar": "^1.0@beta", "drupal/google_analytics": "^4.0", "drupal/image_effects": "^3.0", "drupal/image_url_formatter": "^1.0", "drupal/jquery_ui_accordion": "^1.1", "drupal/lang_dropdown": "^2.0@beta", "drupal/languageicons": "^1.0@beta", "drupal/login_emailusername": "^1.2", "drupal/mailsystem": "^4.3", "drupal/menu_breadcrumb": "^1.14", "drupal/metatag": "^1.16", "drupal/migrate_cron": "^1.2", "drupal/migrate_plus": "^5.1", "drupal/migrate_process_skip": "^2.0", "drupal/migrate_run": "^2.0@beta", "drupal/migrate_source_csv": "^3.4", "drupal/migrate_tools": "^5.0", "drupal/mimemail": "^1.0@alpha", "drupal/module_filter": "^3.1", "drupal/pathauto": "^1.8", "drupal/pathologic": "^1.0@alpha", "drupal/recaptcha": "^3.0", "drupal/redirect": "^1.6", "drupal/responsive_menu": "^4.4", "drupal/responsive_views_grid": "^1.1", "drupal/rules": "3.x-dev@dev", "drupal/schema_metatag": "^2.1", "drupal/search_api": "^1.19", "drupal/seo_checklist": "^5.0", "drupal/simple_instagram_feed": "^3.6", "drupal/simple_popup_blocks": "^2.8", "drupal/simple_sitemap": "^3.8", "drupal/state_machine": "^1.5", "drupal/swiftmailer": "^2.2", "drupal/symfony_mailer": "^1.0@alpha", "drupal/tb_megamenu": "^2.0@alpha", "drupal/token": "^1.7", "drupal/twig_debugger": "^1.1", "drupal/twig_field_value": "^2.0", "drupal/twig_tweak": "^2", "drupal/unused_modules": "^1.2", "drupal/vefl": "^3.0", "drupal/views_bootstrap": "^4.3", "drupal/views_bulk_edit": "^2.4", "drupal/views_bulk_operations": "^4.0", "drupal/views_data_export": "^1.0", "drupal/weight": "^3.2", "drupal/yoast_seo": "^1.7", "drupalcommerce/commerce_base": "9.x-dev", "drush/drush": "^10", "laminas/laminas-diactoros": "^2.8.0", "laminas/laminas-escaper": "^2.9", "laminas/laminas-feed": "^2.12", "laminas/laminas-stdlib": "^3.2", "oomphinc/composer-installers-extender": "^2.0", "raveren/kint": "^3.1", "webflo/drupal-finder": "^1.0.0", "webmozart/path-util": "^2.3" }, "require-dev": { "drupal/core-dev": "^9", "kint-php/kint": "^3.3" }, "conflict": { "drupal/drupal": "" }, "minimum-stability": "dev", "prefer-stable": true, "autoload": { "classmap": [ "scripts/composer/ScriptHandler.php" ] }, "scripts": { "drupal-scaffold": "DrupalComposer\DrupalScaffold\Plugin::scaffold", "pre-install-cmd": [ "DrupalProject\composer\ScriptHandler::checkComposerVersion" ], "pre-update-cmd": [ "DrupalProject\composer\ScriptHandler::checkComposerVersion" ], "post-install-cmd": [ "DrupalProject\composer\ScriptHandler::createRequiredFiles" ], "post-update-cmd": [ "DrupalProject\composer\ScriptHandler::createRequiredFiles" ] }, "extra": { "composer-exit-on-patch-failure": true, "patchLevel": { "drupal/core": "-p2" }, "drupal-scaffold": { "locations": { "web-root": "web/" } }, "installer-types": [ "bower-asset", "npm-asset" ], "installer-paths": { "web/core": [ "type:drupal-core" ], "web/libraries/{$name}": [ "type:drupal-library", "type:bower-asset", "type:npm-asset" ], "web/modules/contrib/{$name}": [ "type:drupal-module" ], "web/profiles/contrib/{$name}": [ "type:drupal-profile" ], "web/themes/contrib/{$name}": [ "type:drupal-theme" ], "drush/Commands/contrib/{$name}": [ "type:drupal-drush" ] }, "patches": { "drupal/address": { "Address filed support for feeds": "https://www.drupal.org/files/issues/2019-04-19/address-feeds-address-target-2882589-23.patch" }, "drupal/bootstrap_basic_image_gallery": { "Template does not support Bootstrap v4": "https://www.drupal.org/files/issues/2020-11-04/template_doesnt_support_v4-3180586-8.patch" }, "drupal/commerce": { "Σωστός υπολογισμός ΦΠΑ στο σύνολο της παραγγελίας στο καλάθι": "https://www.drupal.org/files/issues/2020-06-01/allow-to-show-pretax-3143935-5.patch" } } }

}`

paolobareze commented 2 years ago

This issue can be resolved by editing the commerce_base.info.yml file in the commerce_base profile folder and removing the line " - swiftmailer"

Cache rebuild and then go to uninstall again.

You should also remove "drupal/swiftmailer": "^2.0" from composer.json in the same folder to prevent further issues.