Trigger autoloading of a few classes before executing self-update command, fixes #10252

main
Jordi Boggiano 3 years ago
parent abf832aa49
commit 6a7264fc2d
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -79,6 +79,11 @@ EOT
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
// trigger autoloading of a few classes which may be needed when verifying/swapping the phar file
// to ensure we do not try to load them from the new phar, see https://github.com/composer/composer/issues/10252
class_exists('Composer\Util\Platform');
class_exists('Composer\Downloader\FilesystemException');
$config = Factory::createConfig();
if ($config->get('disable-tls') === true) {

Loading…
Cancel
Save