Problem/Motivation

Drupal utilizes the Symfony service container, however some features such as autowiring and autoconfiguration were not leveraged in Drupal 8. Since Drupal 9.3, services can be autowired. This means that when defining a service in *.services.yml, in many cases the arguments can be automatically inferred from the typehints on constructor arguments. More information on service autowiring in Drupal can be found in the change record.

Proposed resolution

In order for autowiring to work with services of this module, aliases needs to be added for classes and non-ambiguous core interfaces (i.e. interfaces that only have a single implementation).

Issue fork geofield-3535462

Command icon 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

dieterholvoet created an issue. See original summary.

dieterholvoet’s picture

Assigned: dieterholvoet » Unassigned
Status: Active » Needs review

itamair made their first commit to this issue’s fork.

itamair’s picture

Status: Needs review » Reviewed & tested by the community

thanks @dieterholvoet, going to commit/merge this asap ...

itamair’s picture

Status: Reviewed & tested by the community » Fixed

merged and deployed into new 8.x-1.66 release.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.