Page MenuHomePhabricator

Research to create service for HTMLForm::factory and html fields
Open, Needs TriagePublic

Description

Some html fields instanced by HTMLForm::factory using services like NamespaceInfo (HTMLNamespacesMultiselectField) or LanguageNameUtils (HTMLSelectLanguageField)

The class itself implements ProtectedHookAccessorTrait for hooks

There is no global state for config as the factory takes a IContextSource, but how to inject the services into the fields? Using some sort of ObjectFactory?