Go to file
Piotr Miazga 7b750929a8 Move Echo hooks to new EchoHooks handler that has no dependencies
Echo hook BeforeCreateEchoEvent is triggered very early in
Setup.php. This causes all dependencies of Thanks/Hooks to be
initialized. One of the places that is affected is the `addWiki.php`
script that tries to redefine the RevisionStore service, but cannot
due to fact it's already initialized.

Both Echo hooks (BeforeCreateEchoEvent and EchoGetBundleRules) do
not require any dependencies, and due to fact that one of those is
initialized early, let's move them to a separate small EchoHooks
class that would handle Echo specific logic.

Bug: T358236
Change-Id: I0e348872ba5dc313325e3f4f296fd84bfb2c785b
2024-04-04 16:39:50 +02:00
.phan ApiThank: Send thanks logs to CheckUser when extension is enabled 2020-07-03 05:03:28 +00:00
i18n Localisation updates from https://translatewiki.net. 2024-03-29 08:47:27 +01:00
includes Move Echo hooks to new EchoHooks handler that has no dependencies 2024-04-04 16:39:50 +02:00
modules build: Update 'svgo' to latest v3.2.0 and re-minify SVGs 2024-01-15 22:05:13 +01:00
scripts scripts/pre-commit s/Flow/Thanks/ 2021-03-21 00:44:33 +00:00
tests Use setGroupPermissions instead of mergeMwGlobalArrayValue 2024-03-21 19:28:01 +00:00
.eslintignore Update ESLint and fix config 2023-11-30 12:01:26 +00:00
.eslintrc.json build: Update eslint config 2022-01-25 22:01:31 +00:00
.gitignore doxygen: normalize output directory to 'docs' 2020-05-05 07:43:15 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:03:54 -07:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 33.0.0 2020-11-04 14:30:29 +00:00
.stylelintrc.json build: Add stylelint for less file 2024-04-02 01:31:42 +02:00
.svgo.config.js Update ESLint and fix config 2023-11-30 12:01:26 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 17:15:27 +00:00
composer.json build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0 2024-03-12 20:52:59 +01:00
COPYING Add COPYING 2014-03-01 16:28:20 +00:00
Doxyfile doxygen: normalize output directory to 'docs' 2020-05-05 07:43:15 -07:00
extension.json Move Echo hooks to new EchoHooks handler that has no dependencies 2024-04-04 16:39:50 +02:00
Gruntfile.js build: Add stylelint for less file 2024-04-02 01:31:42 +02:00
package-lock.json build: Add stylelint for less file 2024-04-02 01:31:42 +02:00
package.json build: Add stylelint for less file 2024-04-02 01:31:42 +02:00
ServiceWiring.php Switch to ICP and stop using DBAccessObjectUtils::getDBOptions() 2024-02-29 09:15:20 +00:00
Thanks.alias.php Thanks: Special page aliases should not store in zh 2023-03-22 12:22:02 +00:00