Page MenuHomePhabricator

Dispatching formatters should have factory methods for derived instances, to allow overriding individual inner formatters.
Closed, ResolvedPublic

Description

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).


Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=0

Details

Reference
bz68025

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:32 AM
bzimport set Reference to bz68025.
bzimport added a subscriber: Unknown Object (MLST).
daniel claimed this task.

This request has become mute, since the default LabelLookup can now be overwritten via the FormatterOptions, see I3c6ead36f501d6.