Composer
class Composer (View source)
Provides static functions for composer script events.
Properties
| static protected | $packageToCleanup |
Methods
Add vendor classes to Composer's static classmap.
Ensures that .htaccess and web.config files are present in Composer root.
Remove possibly problematic test files from vendored projects.
Find the array key for a given package name with a case-insensitive search.
Removes Composer's timeout so that scripts can run indefinitely.
Helper method to remove directories and the files they contain.
Fires the drupal-phpunit-upgrade script event if necessary.
Determines if PHPUnit needs to be upgraded.
Details
static
preAutoloadDump(Event $event)
Add vendor classes to Composer's static classmap.
static
ensureHtaccess(Event $event)
Ensures that .htaccess and web.config files are present in Composer root.
static
vendorTestCodeCleanup(PackageEvent $event)
Remove possibly problematic test files from vendored projects.
static protected string|null
findPackageKey(string $package_name)
Find the array key for a given package name with a case-insensitive search.
static
removeTimeout()
Removes Composer's timeout so that scripts can run indefinitely.
static protected bool
deleteRecursive(string $path)
Helper method to remove directories and the files they contain.
static
upgradePHPUnit(Event $event)
Fires the drupal-phpunit-upgrade script event if necessary.
static bool
upgradePHPUnitCheck(string $phpunit_version)
Determines if PHPUnit needs to be upgraded.
This method is located in this file because it is possible that it is called before the autoloader is available.