Trigger autoloading of a few classes before executing self-update command, fixes #10252
parent
abf832aa49
commit
6a7264fc2d
|
@ -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…
Reference in New Issue