The class RevisionDeleter is using some services in static code and it allows to create instances of class RevDelItem/RevDelList which may need also services and needs some kind of ObjectFactory
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T259960 Inject services into API modules and special pages | |||
Open | None | T265825 Research to create service for RevisionDeleter |
Event Timeline
Comment Actions
Since T268713: Inject dependencies into RevDelList classes RevisionDeleter::createList now uses an ObjectFactory to inject services
If we turned RevisionDeleter into its own service and replaced the static methods with non-static equivalents, only an ObjectFactory needs to be injected - no other services are used within RevisionDeleter, and any services used within the RevDelItem (sub)classes should eventually be injected by the RevDelList (sub)classes and isn't referred to directly in RevisionDeleter