Свойство | Тип | Описание | |
---|---|---|---|
$composer | Composer\Composer | ||
$eventDispatcher | EventDispatcher | ||
$executor | Composer\Util\ProcessExecutor | ||
$io | Composer\IO\IOInterface | ||
$patches | array |
Метод | Описание | |
---|---|---|
activate ( Composer\Composer $composer, Composer\IO\IOInterface $io ) | Apply plugin modifications to composer | |
checkPatches ( Composer\Script\Event $event ) | Before running composer install, | |
gatherPatches ( Composer\Installer\PackageEvent $event ) | Gather patches from dependencies and store them for later use. | |
getSubscribedEvents ( ) | Returns an array of event names this subscriber wants to listen to. | |
grabPatches ( ) : |
Get the patches from root composer or external file | |
postInstall ( Composer\Installer\PackageEvent $event ) |
Метод | Описание | |
---|---|---|
executeCommand ( string $cmd ) : boolean | Executes a shell command with escaping. | |
getAndApplyPatch ( Composer\Util\RemoteFilesystem $downloader, $install_path, $patch_url ) | Apply a patch on code in the specified directory. | |
getPackageFromOperation ( Composer\DependencyResolver\Operation\OperationInterface $operation ) : Composer\Package\PackageInterface | Get a Package object from an OperationInterface object. | |
isPatchingEnabled ( ) : boolean | Checks if the root package enables patching. | |
writePatchReport ( array $patches, string $directory ) | Writes a patch report to the target directory. |
public activate ( Composer\Composer $composer, Composer\IO\IOInterface $io ) | ||
$composer | Composer\Composer | |
$io | Composer\IO\IOInterface |
public checkPatches ( Composer\Script\Event $event ) | ||
$event | Composer\Script\Event |
protected executeCommand ( string $cmd ) : boolean | ||
$cmd | string | |
Результат | boolean |
public gatherPatches ( Composer\Installer\PackageEvent $event ) | ||
$event | Composer\Installer\PackageEvent |
protected getAndApplyPatch ( Composer\Util\RemoteFilesystem $downloader, $install_path, $patch_url ) | ||
$downloader | Composer\Util\RemoteFilesystem | |
$install_path | ||
$patch_url |
protected getPackageFromOperation ( Composer\DependencyResolver\Operation\OperationInterface $operation ) : Composer\Package\PackageInterface | ||
$operation | Composer\DependencyResolver\Operation\OperationInterface | |
Результат | Composer\Package\PackageInterface |
public static getSubscribedEvents ( ) |
public grabPatches ( ) : |
||
Результат |
protected isPatchingEnabled ( ) : boolean | ||
Результат | boolean | Whether patching is enabled. Defaults to TRUE. |
public postInstall ( Composer\Installer\PackageEvent $event ) | ||
$event | Composer\Installer\PackageEvent |
protected writePatchReport ( array $patches, string $directory ) | ||
$patches | array | |
$directory | string |
protected EventDispatcher $eventDispatcher | ||
Результат | EventDispatcher |
protected ProcessExecutor,Composer\Util $executor | ||
Результат | Composer\Util\ProcessExecutor |