setBinaries example

$this->io->writeError(
        sprintf('%sModifying bin config for <info>%s</info> which overlaps with cleanup directories.', str_repeat(' ', 4)$package->getName()),
        TRUE,
        IOInterface::VERBOSE
      );
      $modified_binaries = [];
      foreach ($binaries as $binary) {
        if (!in_array($binary$unset_these_binaries)) {
          $modified_binaries[] = $binary;
        }
      }
      $package->setBinaries($modified_binaries);
    }
  }

  /** * Find bin files which are inside cleanup directories. * * @param string[] $binaries * 'Bin' configuration from the package we're cleaning up. * @param string[] $clean_paths * The paths we're cleaning up. * * @return string[] * Bin files to remove, with the file as both the key and the value. */
Home | Imprint | This part of the site doesn't use cookies.