Page MenuHomePhabricator

Research to create service for SessionManager::singleton()/getGlobalSession()
Open, Needs TriagePublic

Description

SessionManager::singleton() instance the object with global state, but the constructor allows injection with options

Event Timeline

Direct construction with args is only used in tests, should be fine to be converted to service for T306707.
https://codesearch.wmcloud.org/search/?q=new%20SessionManager%5C(

Change 790665 had a related patch set uploaded (by Func; author: Func):

[mediawiki/core@master] Create SessionManager service

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