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

Breadcrumb

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

function Factory::getLockFile

2 calls to Factory::getLockFile()
Factory::createComposer in vendor/composer/composer/src/Composer/Factory.php
Creates a Composer instance
RequireCommand::execute in vendor/composer/composer/src/Composer/Command/RequireCommand.php

File

vendor/composer/composer/src/Composer/Factory.php, line 241

Class

Factory
Creates a configured instance of composer.

Namespace

Composer

Code

public static function getLockFile(string $composerFile) : string {
    return "json" === pathinfo($composerFile, PATHINFO_EXTENSION) ? substr($composerFile, 0, -4) . 'lock' : $composerFile . '.lock';
}

API Navigation

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