1
0
Fork 0

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

pull/10262/head
Jordi Boggiano 2021-11-08 11:41:12 +01:00
parent abf832aa49
commit 6a7264fc2d
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 5 additions and 0 deletions

View File

@ -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) {