- Issue created by @alexpott
- π¬π§United Kingdom longwave UK
+1 - unless we have a good reason to have a friendly alias name for a service, it should just be named after the class it is implemented in, because naming things is hard - we are very inconsistent in our service naming at present - and so this removes the decision entirely.
π Autowire core modules that do not require explicit configuration Postponed proposes making the autowiring change to existing core modules and π Use autowiring for core modules and services Needs work to most core services.
If this is accepted I think we need a sister issue to rename core module services (with deprecated aliases for the old names), and eventually, one for core services too.
- π¦πΊAustralia dpi Perth, Australia
Iβve pretty much adopted this as a pattern for the last year or so, itβs great
In case itβs not obvious, you can also access services by class name, since the proposed convention is simply making the service id the same as the backing class/interface.
\Drupal::service(Drupal\Core\Entity\EntityTypeManagerInterface::class)