Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Installer.php

function Installer::createPoolOptimizer

1 call to Installer::createPoolOptimizer()
Installer::doUpdate in vendor/composer/composer/src/Composer/Installer.php
@phpstan-return self::ERROR_*

File

vendor/composer/composer/src/Composer/Installer.php, line 1090

Class

Installer
@author Jordi Boggiano <j.boggiano@seld.be> @author Beau Simensen <beau@dflydev.com> @author Konstantin Kudryashov <ever.zet@gmail.com> @author Nils Adermann <naderman@naderman.de>

Namespace

Composer

Code

private function createPoolOptimizer(PolicyInterface $policy) : ?PoolOptimizer {
    // Not the best architectural decision here, would need to be able
    // to configure from the outside of Installer but this is only
    // a debugging tool and should never be required in any other use case
    if ('0' === Platform::getEnv('COMPOSER_POOL_OPTIMIZER')) {
        $this->io
            ->write('Pool Optimizer was disabled for debugging purposes.', true, IOInterface::DEBUG);
        return null;
    }
    return new PoolOptimizer($policy);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal