Make TypedData plugins conform better to the Plugin Interfaces

Created on 27 January 2013, over 11 years ago
Updated 28 March 2024, 3 months ago

This is a follow up to #1845546: Implement validation for the TypedData API β†’ . I found numerous todos that were related to various approaches with the TypedData Plugin Manager class and it's factory. This patch fixes those todos, removes the expanded and unnecessary usage of createInstance(), move the manager create() method to call $this->createInstance() instead of $this->factory->createInstance(), and appropriately injects the Manager and Validator into the plugins since they apparently need access to them. There are a few documentation thing I did here that I know are patently wrong within the Factory. $name and $parent seem to only mater for non-primitive TypedData plugins, we should document how that matters a bit better. The factory still exists because TypedData plugins have some interesting special casing they need in order to instantiate the proper class (and can apparently be overridden to some degree). I think the changes are probably pretty self explanatory.

Eclipse

πŸ“Œ Task
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
PluginΒ  β†’

Last updated about 15 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States EclipseGc

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024