wiki.techinc.nl/tests/phpunit/includes/registration
daniel db729e46f6 Treat $wgHooks as a regular setting
$wgHooks should be treated like a regular setting, which cannot be
manipulated after bootstrapping is complete. This will allow us to
greatly simplify the logic in HookContainer.

Replacing $wgHooks with a fake array after bootstrapping allows us to
detect any remaining live access to $wgHooks without breaking
functionality.

The plan is to have the fake array emit deprecation warnings in the 1.40
release, and make it throw exceptions in later releases.
See Iddcb760cf8961316d6527e81b9aa968657d8354c for the deprecation
warnings.

Bug: T331602
Change-Id: I0ebba9a29f81b0d86ad8fd84d478fb244f9e9c15
2023-03-09 10:20:44 +01:00
..
FooBar/templates registration: Make it easier to set a skin's templateDirectory 2021-08-27 00:22:38 -07:00
ExtensionRegistrationTest.php Treat $wgHooks as a regular setting 2023-03-09 10:20:44 +01:00