Problem/Motivation
As drupal supports autowire add aliases to services.
Core CR: https://www.drupal.org/node/3218156
Proposed resolution
Create service aliases for public services:
- flag
- flag.link_builder
Remaining tasks
- Create aliases
User interface changes
No changes
API changes
Should not be any
Data model changes
No changes
Issue fork flag-3455365
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
kbrodej commentedComment #4
ivnishMR needs rebase
Comment #6
tr commentedRebased. But why are only two of the services aliased?
Comment #7
tr commentedAlso, why just add the aliases? Why not change the service classes to use the autowiring? That is where the real benefit comes in, and that also serves as a tests to demonstrate that the change to both flag.services.yml and the service implementation classes are correct.
Comment #8
ivnishComment #10
deaom commentedBased on comment #7 updated the services to use autowire where possible, meaning plugin managers do not use it. Updated the kernel tests to show autowire works. The issue with previous composer failing is because of #3564269: Composer 2.9 blocks dependencies which have security advisories. Can be ignored until fixed. Marking the issue as needs review as other tests are passing.
Comment #12
ivnish