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?

Files: 
CommentFileSizeAuthor
service-derivative-discovery.patch10.6 KBfubhy
FAILED: [[SimpleTest]]: [PHP 5.4 MySQL] Unable to apply patch service-derivative-discovery.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

Status:Needs review» Needs work

The last submitted patch, service-derivative-discovery.patch, failed testing.

damiankloip’s picture

Issue summary:View changes

So this would replace ContainerDerivativeDiscoveryDecorator?

dawehner’s picture

I doubt we really need this at the point, but sure both solutions would work.

damiankloip’s picture

Yeah. What he said.

dawehner’s picture

Status:Needs work» Closed (won't fix)

So