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

Breadcrumb

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

function BinaryInstaller::installFullBinaries

1 call to BinaryInstaller::installFullBinaries()
BinaryInstaller::installBinaries in vendor/composer/composer/src/Composer/Installer/BinaryInstaller.php

File

vendor/composer/composer/src/Composer/Installer/BinaryInstaller.php, line 158

Class

BinaryInstaller
Utility to handle installation of package "bin"/binaries

Namespace

Composer\Installer

Code

protected function installFullBinaries(string $binPath, string $link, string $bin, PackageInterface $package) : void {
    // add unixy support for cygwin and similar environments
    if ('.bat' !== substr($binPath, -4)) {
        $this->installUnixyProxyBinaries($binPath, $link);
        $link .= '.bat';
        if (file_exists($link)) {
            $this->io
                ->writeError('    Skipped installation of bin ' . $bin . '.bat proxy for package ' . $package->getName() . ': a .bat proxy was already installed');
        }
    }
    if (!file_exists($link)) {
        file_put_contents($link, $this->generateWindowsProxyCode($binPath, $link));
        Silencer::call('chmod', $link, 0777 & ~umask());
    }
}

API Navigation

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