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

Breadcrumb

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

function Compiler::addComposerBin

1 call to Compiler::addComposerBin()
Compiler::compile in vendor/composer/composer/src/Composer/Compiler.php
Compiles composer into a single phar file

File

vendor/composer/composer/src/Composer/Compiler.php, line 239

Class

Compiler
The Compiler class compiles composer into a phar

Namespace

Composer

Code

private function addComposerBin(\Phar $phar) : void {
    $content = file_get_contents(__DIR__ . '/../../bin/composer');
    $content = Preg::replace('{^#!/usr/bin/env php\\s*}', '', $content);
    $phar->addFromString('bin/composer', $content);
}

API Navigation

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