Refactor some Installer code into ExecutableFinder
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 20 Oct 2017 07:36:03 +0000 (00:36 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 26 Oct 2017 18:42:05 +0000 (11:42 -0700)
commit0e1fc6575e00a9bb6d1f671f5df54b2faade518f
tree492a0a6903e021fdfbdd026d40a2c53611751704
parent4f2d55babb8d011a25343f40c4f958eef9daf99d
Refactor some Installer code into ExecutableFinder

Refactor Installer::locateExecutableInDefaultPaths() into a separate
utility class, ExecutableFinder. This class is already used in plenty of
places outside of the installer, so it's ripe for being extracted.

This class is located in utils/ due to the dependency upon
Shell::command(). Once that no longer has a dependence upon MediaWiki,
this class can be moved to libs/ too.

Change-Id: I175465acc0d64f990445ce05fabcee8b88a0b259
RELEASE-NOTES-1.31
autoload.php
includes/installer/Installer.php
includes/utils/ExecutableFinder.php [new file with mode: 0644]
maintenance/Maintenance.php
tests/parser/TidySupport.php
tests/phpunit/maintenance/DumpTestCase.php