Good morning!
I briefly discussed this with neclimdul and EclipseGc on IRC yesterday... Currently we are registering plugin managers with the DIC which might use derivative discovery - In order to retrieve a list of existing entity types in a plugin deriver we would now have to use entity_get_info() or (in the future) drupal_container()->get('plugin.manager.entity'). I would very much prefer to inject stuff into my plugin derivers directly. Does it make sense to add a discovery decorator to \Core which would refer to plugin derivers as service ids instead of FQCNs?
| Comment | File | Size | Author |
|---|---|---|---|
| service-derivative-discovery.patch | 10.6 KB | fubhy |
Comments
Comment #3
damiankloip commentedSo this would replace ContainerDerivativeDiscoveryDecorator?
Comment #4
dawehnerI doubt we really need this at the point, but sure both solutions would work.
Comment #5
damiankloip commentedYeah. What he said.
Comment #6
dawehnerSo