Go to file
Matthias Mullie 876197b520 Get rid of addApiHandler factory
Some complexity is now gone. We didn't currently have a good justification
for a the APIHandler factory: the apiHandler caller would have to specify
(variable `foreign`) what kind of handler it would like to initiate anyway,
so it might as well just inject the object (which makes the code easier to
follow, decreases bugs risk because there are less code paths)

This also gives the caller more control of the API handlers:
registerForeignSources will now be able to do more. Now it can e.g. create
1 object that is shared for multiple wikis (to do lookups for multiple
wikis at once)

Also renamed addApiHandler to setApiHandler (it just sets the value it needs
without checking if it already existed anyway)

Change-Id: Ie1814c5bf1a1f0e5607033beb506df67f3585b24
2016-05-13 14:11:42 -04:00
db_patches Track what wikis a user has unread notifications on 2015-11-20 15:54:11 -08:00
i18n Localisation updates from https://translatewiki.net. 2016-05-12 22:14:01 +02:00
images Crush all SVGs with svgo 2016-01-15 17:05:17 -08:00
includes Protect against some errors that apparently happen in production 2016-05-12 17:56:16 -07:00
maintenance NotifUser: Refactor getNotificationCount() and friends, add caching for global counts 2016-05-02 16:16:57 -07:00
modules Get rid of addApiHandler factory 2016-05-13 14:11:42 -04:00
scripts Remove legacy qunit handling from Echo 2016-03-31 19:09:48 +00:00
tests Get rid of addApiHandler factory 2016-05-13 14:11:42 -04:00
.csslintrc Add Grunt infrastructure for CI 2015-05-01 20:35:23 -07:00
.gitignore Add tmp emacs file to gitignore 2016-05-12 13:11:20 -04:00
.gitreview Add .gitreview file 2012-04-28 01:26:21 +10:00
.jscsrc Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
.jshintignore Recurse into sub folders for jshint and jscs 2015-11-09 12:52:42 +00:00
.jshintrc Update formatting 2015-10-03 23:28:54 -04:00
.mailmap Add Kunal, Moriel, Jon to credits; add mailmap file 2015-12-15 16:30:19 -08:00
.rubocop.yml Fixed Metrics/LineLength RuboCop offense 2015-09-29 14:59:05 +02:00
autoload.php Add mark-as-read button to notifications in Special:Notifications 2016-05-11 10:41:32 -07:00
composer.json Remove forced -p (progress) flag from phpcs.xml 2016-04-26 14:21:28 -07:00
COPYING Add COPYING 2014-01-24 16:00:24 -08:00
Echo.alias.php Add mark-as-read button to notifications in Special:Notifications 2016-05-11 10:41:32 -07:00
Echo.php Merge "Add mark-as-read button to notifications in Special:Notifications" 2016-05-11 18:42:46 +00:00
echo.sql Allow multiple target pages per event 2015-03-31 07:56:52 +00:00
Gemfile Migration of browsertests* Jenkins jobs to selenium* jobs 2016-04-25 17:54:45 +02:00
Gemfile.lock Migration of browsertests* Jenkins jobs to selenium* jobs 2016-04-25 17:54:45 +02:00
Gruntfile.js build: Remove grunt-contrib-csslint 2016-01-18 19:51:04 -08:00
Hooks.php Respect editmyprivateinfo for email 2016-05-12 11:21:10 -07:00
jsduck.external.js Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
jsduck.json Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
jsduck_custom_tags.rb Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
Makefile Remove legacy qunit handling from Echo 2016-03-31 19:09:48 +00:00
package.json Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
phpcs.xml Remove forced -p (progress) flag from phpcs.xml 2016-04-26 14:21:28 -07:00
Rakefile Migration of browsertests* Jenkins jobs to selenium* jobs 2016-04-25 17:54:45 +02:00
RELEASE_NOTES BREAKING CHANGE: Change $wgEchoDefaultNotificationTypes to be logical 2016-04-22 19:08:12 -07:00
Resources.php Add mark-as-read button to notifications in Special:Notifications 2016-05-11 10:41:32 -07:00