registration: Add ability to check if a specific extension version is loaded
authorMGChecker <hgasuser@gmail.com>
Tue, 28 Aug 2018 02:39:16 +0000 (04:39 +0200)
committerKunal Mehta <legoktm@member.fsf.org>
Mon, 3 Sep 2018 21:37:33 +0000 (14:37 -0700)
commiteb6b4d8e7e6d9c63b3b987d852f631297a6e0d7f
treeecc523439ffbba0067c13b13e046c11c839be9d9
parentc6205149049a9cb40c4c2d11ef610b6bdca5a606
registration: Add ability to check if a specific extension version is loaded

As it's quite common that extensions and skins interact with each other, it's
useful to have a simple way to check if an extension version satisfies a
given constraint, as extensions change over time.

Bug: T202955
Change-Id: I19f9713caf89d647072a2bd7d598e739be383f4a
includes/registration/ExtensionRegistry.php
tests/phpunit/data/registration/good_with_version.json [new file with mode: 0644]
tests/phpunit/includes/registration/ExtensionRegistryTest.php