Page MenuHomePhabricator

SpecialBlock should not be aware of the container
Closed, DuplicatePublic

Description

Problem
In T219684 dependencies were added to SpecialBlock and the class became aware of the container.

Solution
SpecialBlock should have its dependencies injected into it (see T222388).

Event Timeline

SpecialBlock shouldn't become a service; instead, SpecialPageFactory should be a service which instantiates SpecialBlock. See T222388.