ContainerFactoryPluginInterface provide a
create() function and are used for dependency injection.
I would like a clear description of their differences and their use cases, such that it's clear which interface a class should implement.
- Which should I use if I only need to use injected services in a class?
- Which should I use in a service class that will be injected in other classes and defined in the module.services.yml?