In Wikibase Repo, EntityFactory is constructed with a hard-coded map of entity types -> class names.
Then, EntityFactory::newEmpty calls methods on the entity that might not exist for all entity types.
In Wikibase Repo, EntityFactory is constructed with a hard-coded map of entity types -> class names.
Then, EntityFactory::newEmpty calls methods on the entity that might not exist for all entity types.
Change 284070 had a related patch set uploaded (by Aude):
Adjust EntityFactory::newEmpty to work for more entity types
also, do we still want EntityFactory to be deprecated? It is still problematic in many ways, but we can remove some of the assumptions if having this factory is important and useful.
only thing it appears used for is wbeditentity api module for creating a ne w empty entity when given some entity type.
Change 284205 had a related patch set uploaded (by Thiemo Mättig (WMDE)):
Reduce EntityFactory implementation and usage to an absolute minimum
Change 284070 merged by jenkins-bot:
Adjust EntityFactory::newEmpty to work for more entity types
Change 284482 had a related patch set (by Daniel Kinzler) published:
Let EntityFactory take callbacks instead of class names.
Change 285060 had a related patch set uploaded (by Thiemo Mättig (WMDE)):
Remove unused EntityFactory code and non-informational comments
Change 285060 merged by jenkins-bot:
Remove unused EntityFactory code and non-informational comments
Change 285446 had a related patch set uploaded (by Daniel Kinzler):
Take entity instantiator callbacks from WikibaseRepo.entitytypes.php
Change 284482 merged by jenkins-bot:
Let EntityFactory take callbacks instead of class names.
Change 285446 merged by jenkins-bot:
Take entity instantiator callbacks from WikibaseRepo.entitytypes.php
Change 285626 had a related patch set uploaded (by Thiemo Mättig (WMDE)):
Clean-up EntityFactory implementation and documentation
Change 284205 abandoned by Thiemo Mättig (WMDE):
Reduce EntityFactory implementation and usage to an absolute minimum
Reason:
Iee84df3 got merged instead.
Change 285626 merged by jenkins-bot:
Clean-up EntityFactory implementation and documentation