registration: Support conditionally registered namespaces
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 29 Jul 2016 08:09:24 +0000 (01:09 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Fri, 29 Jul 2016 08:09:24 +0000 (01:09 -0700)
commit93aed1e7eb0761d8673f57bde733272a83ade1f9
tree27d5d03fb3b3cdb94b66eee649853e62bfb0e1cc
parent519e92e1e0c61222bd5ac632948cf531734fef38
registration: Support conditionally registered namespaces

Some extensions (e.g. EventLogging) conditionally register a namespace
depending upon the wiki's configuration using the CanonicalNamespaces
hook. Since the "namespaces" key automatically registers the namespace,
we need an option to not register it and let the extension take care of
that manually using the hook.

All of the other namespace related settings are safe to unconditionally
set since they won't do anything if the namespace doesn't actually
exist.

Bug: T141604
Change-Id: Ie8c217fdc8bd783b30f98210309ea56fef39c0da
docs/extension.schema.json
docs/extension.schema.v1.json
includes/registration/ExtensionProcessor.php