Page MenuHomePhabricator

Re-namespace code under MediaWiki\Skin\Cosmos
Closed, ResolvedPublic

Description

NOTE: For renaming to make things more succint: e.g renaming to Cosmos\Hooks and Hooks.php would be preferrable, but currently out of scope for this task.

Currently the code is namespaced under Cosmos. This should be fixed so that they're all namespaced under MediaWiki\Skin\Cosmos, to follow standard Wikimedia coding standards.

Some classes also need to be converted to be namespaced at least under Cosmos *first*, then transitioning to MediaWiki\Skin\Cosmos would be easier.

  • CosmosHooks to Cosmos\CosmosHooks
  • CosmosNavigation to Cosmos\CosmosNavigation
  • CosmosToolbar to Cosmos\CosmosToolbar
  • CosmosTemplate to Cosmos\CosmosTemplate`

Event Timeline

Change 633249 had a related patch set uploaded (by Universal Omega; owner: Universal Omega):
[mediawiki/skins/Cosmos@master] Re-namespace code under MediaWiki\Skins\Cosmos

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

In a follow-up task, we should convert to AutoloadNamespaces as well.

SamanthaNguyen renamed this task from Re-namespace code under MediaWiki\Skins\Cosmos to Re-namespace code under MediaWiki\Skin\Cosmos.Oct 10 2020, 6:45 AM
SamanthaNguyen updated the task description. (Show Details)

Change 633249 merged by jenkins-bot:
[mediawiki/skins/Cosmos@master] Re-namespace code under Cosmos

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

Halfway done, now needs migration to MediaWiki\Skin\Cosmos namespace

Change 633497 had a related patch set uploaded (by Universal Omega; owner: Universal Omega):
[mediawiki/skins/Cosmos@master] Re-namespace under MediaWiki\Skin\Cosmos

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

Change 633497 merged by jenkins-bot:
[mediawiki/skins/Cosmos@master] Re-namespace under MediaWiki\Skin\Cosmos

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