- Issue created by @idebr
- Merge request !98Issue #3533941: Allow pathauto services to be autowired → (Merged) created by idebr
- Status changed to Fixed
5 days ago 7:07pm 10 September 2025
Pathauto provides several services, but they cannot be autowired. See core for reference: 📌 Enable more service autowiring by adding interface aliases to core modules Fixed
Results in the following error message:
Cannot autowire service "[service name]": argument "$pathautoGenerator" of method "[CLASS_NAME]::__construct()" references interface "Drupal\pathauto\PathautoGeneratorInterface" but no such service exists. You should maybe alias this interface to the existing "pathauto.generator" service.
Allow pathauto services to be autowired
None
Pathauto services can now be autowired
None
Active
1.0
Code