Commit graph

7 commits

Author SHA1 Message Date
C. Scott Ananian
8510f728b1 docs: Fix JSON for deprecation in Hooks doc
A quoted string here will fail validation in ExtensionJsonValidationTest.

Change-Id: I8d8bbb03f4238090cab13218d45123e885744c9b
2020-12-09 15:03:49 -05:00
Tim Starling
9834d4c214 Prevent service injection to LoadExtensionSchemaUpdates hook
* Add noServices option to HookContainer::run()
* Use the option for LoadExtensionSchemaUpdates
* Document service injection including the caveats we know about

Bug: T258851
Change-Id: Ie57f2a3aeeea883f392e3c83ff228d1de68c6ebf
2020-09-18 08:01:52 +10:00
jenkins-bot
ba6a7bfacb Merge "Update the hooks documentation included with MediaWiki." 2020-07-16 21:59:32 +00:00
Kosta Harlan
3e52a04c99 Clarify hook definition in extension.json
Change-Id: I7bbdde9d476dc98b8e99fa38cd5d54903341bd21
2020-07-16 19:13:56 +02:00
Bill Pirkle
56660af3db Update the hooks documentation included with MediaWiki.
The docs/hooks.txt file described the hook system from MediaWiki
1.34 and earlier. Its continued presence was confusing to developers,
who were not sure if they should update it. Remove the majority of
this file and direct developers to Hooks.md, which describes the
hook system implemented in 1.35. Also add a link to
https://www.mediawiki.org/wiki/Manual:Hooks to both hooks.txt and
Hooks.md.

Bug: T257804
Change-Id: I5998f179acde1a7fb1053c23305f949fa63542d9
2020-07-16 09:02:05 -05:00
Tim Starling
d1363015b7 Introduce soft deprecation of hooks
Add a "silent" flag to DeprecatedHooks which causes relevant deprecation
warnings to be suppressed, but still allows call filtering to be used.

Add existing hooks that are documented as deprecated to the array.

Change-Id: Ieeb5e1840fd06d2b7979ef7827ba82bd2a35a2ba
2020-06-04 10:00:55 +10:00
Tim Starling
323ac073d3 Documentation for the new hook system
Add Hooks.md with a description of the new hooks system

Bug: T240307
Change-Id: I83cbbfc52ba7645ee5f31b6bcc0cb23cd1bf1ccf
2020-05-28 00:58:11 +00:00