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

Breadcrumb

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

function AutoloadGenerator::getFileIdentifier

Return value

string

File

vendor/composer/composer/src/Composer/Autoload/AutoloadGenerator.php, line 1322

Class

AutoloadGenerator
@author Igor Wiedler <igor@wiedler.ch> @author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Autoload

Code

protected function getFileIdentifier(PackageInterface $package, string $path) {
    // TODO composer v3 change this to sha1 or xxh3? Possibly not worth the potential breakage though
    return hash('md5', $package->getName() . ':' . $path);
}

API Navigation

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