[02:27:01] [[Tech]]; Sive Nojilana; /* Hacking */ new section; https://meta.wikimedia.org/w/index.php?diff=21272947&oldid=21272217&rcid=17811670 [02:31:32] [[Tech]]; Hasley; Reverted 1 edit by [[Special:Contributions/Sive Nojilana|Sive Nojilana]] ([[User talk:Sive Nojilana|talk]]) to last revision by The C of E; https://meta.wikimedia.org/w/index.php?diff=21272961&oldid=21272947&rcid=17811684 [07:41:43] [[Tech]]; AKlapper (WMF); /* Reflinks down */; https://meta.wikimedia.org/w/index.php?diff=21273290&oldid=21272961&rcid=17812262 [07:45:32] [[Tech]]; The C of E; /* Reflinks down */ re; https://meta.wikimedia.org/w/index.php?diff=21273298&oldid=21273290&rcid=17812274 [09:42:19] [[Tech]]; AKlapper (WMF); /* Reflinks down */; https://meta.wikimedia.org/w/index.php?diff=21273549&oldid=21273298&rcid=17812678 [12:00:47] does anyone know what’s the best way to get the user (interface) language inside a service wiring file? [12:01:04] neither the user language nor the request context (or any context source) are part of the service container, as far as I can tell [12:02:20] what are you trying to do? service container sounds like the wrong place to do logic based on user language [12:02:41] I am trying to migrate existing services to service wiring [12:02:48] so “don’t do this” is exactly the answer I was not hoping to hear :S [12:04:39] (specifically the service is T277577) [12:04:40] T277577: Move WikibaseRepo MessageParameterFormatter to service container - https://phabricator.wikimedia.org/T277577 [12:08:13] I'd make a service named "MessageParameterFormatterFactory" or similar, create that via the service container and inject all the other dependencies to it, and in that have a function to create a MessageParameterFormatter for a given language using the services injected in the factory class [12:08:24] but I'm not at all sure if it's the best solution [13:57:12] AIUI the consensus on this topic was to pass request-specific params such as context as method params to the service, rather than placing them in the service container [13:58:30] relevant discussion: https://phabricator.wikimedia.org/T218555 [14:21:14] thanks, that’s helpful context [14:21:22] though the answer is about what I feared :/