Last modified: 2014-07-18 10:11:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70025, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68025 - Dispatching formatters should have factory methods for derived instances, to allow overriding individual inner formatters.
Dispatching formatters should have factory methods for derived instances, to ...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on: 68026
Blocks: 68022
  Show dependency treegraph
 
Reported: 2014-07-15 10:51 UTC by Daniel Kinzler
Modified: 2014-07-18 10:11 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Kinzler 2014-07-15 10:51:56 UTC
DispatchingSnakFormatter, DispatchingValueFormatter, and PropertyValueSnakFormatter should have a getDerivedFormatter() method, which would allow individual inner formatters to be overwritten in an otherwise identical instance of the same kind of formatter.

The idea is to allow code using such formatters, such as EntityView, to control individual inner formatters (such as the EntityIdHtmlLinkFormatter).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links