By wim leers on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.5.x
Introduced in version:
9.5.0
Issue links:
Description:
Before Drupal 8 was released, service names were restricted to lower-case only.
Since then, Drupal has started adopting new Symfony Dependency Injection features. One of those is autowiring (since Drupal 9.3 (change record)).
This means that service names such as Drupal\mymodule\CoolService need to become acceptable. In practice, this often worked, but not always, because the service name restrictions were not applied consistently.
As of Drupal 9.5, those restrictions are now lifted, to ensure autowiring works in all scenarios.
Impacts:
Module developers