registration: Fix caching of load_composer_autoloader
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 23 Sep 2017 05:20:16 +0000 (22:20 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sat, 23 Sep 2017 05:20:16 +0000 (22:20 -0700)
commit72d92f6fe3daf19ee8c4b5ae4886f51867f02e55
treefcded223621254c85fccf74d1e03c82442e9f0d8
parent46aa2eb54f6172b6fca40aa416da1a249a730426
registration: Fix caching of load_composer_autoloader

Move the file_exists() check out of the extension processor and into the
extension registry so that it is evaluated at run time instead of during
caching. The prior way is problematic since we don't invalidate the
cache if the existence of the file were to change.

Bug: T176534
Change-Id: I98e4ffdfac9f98397a103966824519afe1375356
includes/registration/ExtensionProcessor.php
includes/registration/ExtensionRegistry.php