Page MenuHomePhabricator

Modernize code under ttmserver/ directory
Open, MediumPublic

Description

Per parent task:

  • Namespace code and put under src/
  • Add type declarations and strict types
  • Use constructor service injection where possible
  • Update file, class and method comments per current practices
  • When removing the directory (namespacing the last file), configuration mentioning it should be removed. Starting point: grep -RP --exclude-dir=i18n/ '(?<!\$)ttmserver' .

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 911757 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] DatabaseTTMServer: Move to namespace

https://gerrit.wikimedia.org/r/911757

Change 911757 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] DatabaseTTMServer: Move to namespace

https://gerrit.wikimedia.org/r/911757

Tacsipacsi subscribed.
  • Use constructor service injection where possible

Is it possible at all? TTM servers are instantiated by MediaWiki\Extension\Translate\TtmServer\TtmServerFactory, not by MediaWiki core.