- πΊπΈUnited States Chris Dart
I prefer the idea of using the @service_tag that clearly states a class because the api.drupal.org never tells us how to instantiate a service of the given class. Why separate these when services should never be instantiated except by using
\Drupal::service();
? This results in what is essentially special knowledge--something that is anathema to FOSS software principles. It should be tightly connected to the class being instantiated. When I develop custom modules that have services I always include the instructions for instantiation in the class PHPDocBlock so that it's easy for others on my team to see. While this does create redundancy, that's more of an architectural flaw if anything. (Why not define the service entirely in a docblock?) But that's a debate for another day. - π¨π¦Canada Charlie ChX Negyesi πCanada
Let's get the ball rolling again, I tried to adopt the old IS into the new template.