Symfony autowire issues

Created on 4 May 2025, 8 days ago

Problem/Motivation

I now have this issue:
Symfony\Component\DependencyInjection\Exception\RuntimeException: Cannot autowire service [error]
"commerce_invoice.invoice_total_summary": argument "$adjustmentTransformer" of method
"Drupal\commerce_invoice\InvoiceTotalSummary::__construct()" references interface
"Drupal\commerce_order\AdjustmentTransformerInterface" but no such service exists. You should maybe
alias this interface to the existing "commerce_order.adjustment_transformer" service. in
drupal-10.4.x/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php:51

Once the above was fixed I got this one:

Symfony\Component\DependencyInjection\Exception\RuntimeException: Cannot autowire service "commerce_invoice.invoice_confirmation_mail": argument "$mailHandler" of method "Drupal\commerce_invoice\Mail\InvoiceConfirmationMail::__construct()" references interface "Drupal\commerce\MailHandlerInterface" but no such service exists. You should maybe alias this interface to the existing "commerce.mail_handler" service. in Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->process() (line 51 of drupal-10.4.x/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php).

Steps to reproduce

I honestly cannot pin point it. I updated commerce to commerce 2.x-dev

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇺🇸United States SocialNicheGuru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024