Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
BBC RussianHomePhabricator
Log In
Maniphest T266878

Add a PSR-4 namespace to special page classes
Open, LowestPublic

Description

Currently, autoload maps:
'MediaWiki\\SpecialPage\\' => __DIR__ . '/specialpage/', for files in /specialpage/, which are not themselves the individual special pages, but rather the base classes, SpecialPageFactory, etc.
There is no namespace mapping for /specials/, where all of the core special pages actually live
Perhaps there should be?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
AMooney triaged this task as Medium priority.Nov 2 2020, 3:38 PM
AMooney moved this task from Inbox to Tech Planning Review on the Platform Engineering board.
AMooney subscribed.

Review to provide a response for Dannys whether this should be namespaced.

daniel subscribed.

This is the right thing in general, but it seems pointless to me to invest time into this now, if we are going to do T166010: The Great Namespaceization Effort later. This is blocked until we require at least PHP 7.4, because of an issue with the class alias mechanism.

Untagging PET for now.

Aklapper lowered the priority of this task from Medium to Lowest.Jan 5 2021, 7:31 AM
Umherirrender renamed this task from Add a namespace to special page classes to Add a PSR-4 namespace to special page classes.Oct 18 2022, 9:12 PM