ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
activate (Composer $composer, IOInterface $io) | |
Apply plugin modifications to composer. More... | |
checkPatches (Event $event) | |
Before running composer install,. More... | |
gatherPatches (PackageEvent $event) | |
Gather patches from dependencies and store them for later use. More... | |
grabPatches () | |
Get the patches from root composer or external file. More... | |
Static Public Member Functions | |
static | getSubscribedEvents () |
Returns an array of event names this subscriber wants to listen to. More... | |
Protected Member Functions | |
getPackageFromOperation (OperationInterface $operation) | |
Get a Package object from an OperationInterface object. More... | |
getAndApplyPatch (RemoteFilesystem $downloader, $install_path, $patch_url) | |
Apply a patch on code in the specified directory. More... | |
isPatchingEnabled () | |
Checks if the root package enables patching. More... | |
writePatchReport ($patches, $directory) | |
Writes a patch report to the target directory. More... | |
executeCommand ($cmd) | |
Executes a shell command with escaping. More... | |
Protected Attributes | |
$composer | |
$io | |
$eventDispatcher | |
$executor | |
$patches | |
Definition at line 28 of file Patches.php.
cweagans\Composer\Patches::activate | ( | Composer | $composer, |
IOInterface | $io | ||
) |
Apply plugin modifications to composer.
Composer | $composer | |
IOInterface | $io |
Definition at line 57 of file Patches.php.
References cweagans\Composer\Patches\$composer, cweagans\Composer\Patches\$io, and array.
cweagans\Composer\Patches::checkPatches | ( | Event | $event | ) |
Before running composer install,.
Event | $event |
Definition at line 83 of file Patches.php.
References cweagans\Composer\Patches\$patches, array, cweagans\Composer\Patches\grabPatches(), and cweagans\Composer\Patches\isPatchingEnabled().
|
protected |
Executes a shell command with escaping.
string | $cmd |
Definition at line 407 of file Patches.php.
References $data, $index, cweagans\Composer\Patches\$io, $output, and $type.
Referenced by cweagans\Composer\Patches\getAndApplyPatch().
cweagans\Composer\Patches::gatherPatches | ( | PackageEvent | $event | ) |
Gather patches from dependencies and store them for later use.
PackageEvent | $event |
Definition at line 135 of file Patches.php.
References cweagans\Composer\Patches\$patches, cweagans\Composer\Patches\getPackageFromOperation(), cweagans\Composer\Patches\grabPatches(), and cweagans\Composer\Patches\isPatchingEnabled().
|
protected |
Apply a patch on code in the specified directory.
RemoteFilesystem | $downloader | |
$install_path | ||
$patch_url |
Definition at line 313 of file Patches.php.
References $filename, array, and cweagans\Composer\Patches\executeCommand().
Referenced by cweagans\Composer\Patches\grabPatches().
|
protected |
Get a Package object from an OperationInterface object.
OperationInterface | $operation |
Definition at line 291 of file Patches.php.
Referenced by cweagans\Composer\Patches\gatherPatches(), and cweagans\Composer\Patches\grabPatches().
|
static |
Returns an array of event names this subscriber wants to listen to.
Definition at line 68 of file Patches.php.
References array.
cweagans\Composer\Patches::grabPatches | ( | ) |
Get the patches from root composer or external file.
Definition at line 181 of file Patches.php.
References $description, $error, cweagans\Composer\Patches\$patches, $url, array, cweagans\Composer\Patches\getAndApplyPatch(), cweagans\Composer\Patches\getPackageFromOperation(), cweagans\Composer\PatchEvents\POST_PATCH_APPLY, cweagans\Composer\PatchEvents\PRE_PATCH_APPLY, and cweagans\Composer\Patches\writePatchReport().
Referenced by cweagans\Composer\Patches\checkPatches(), and cweagans\Composer\Patches\gatherPatches().
|
protected |
Checks if the root package enables patching.
Definition at line 372 of file Patches.php.
Referenced by cweagans\Composer\Patches\checkPatches(), and cweagans\Composer\Patches\gatherPatches().
|
protected |
Writes a patch report to the target directory.
array | $patches | |
string | $directory |
Definition at line 391 of file Patches.php.
References $description, $output, cweagans\Composer\Patches\$patches, and $url.
Referenced by cweagans\Composer\Patches\grabPatches().
|
protected |
Definition at line 33 of file Patches.php.
Referenced by cweagans\Composer\Patches\activate().
|
protected |
Definition at line 41 of file Patches.php.
|
protected |
Definition at line 45 of file Patches.php.
|
protected |
Definition at line 37 of file Patches.php.
Referenced by cweagans\Composer\Patches\activate(), and cweagans\Composer\Patches\executeCommand().
|
protected |
Definition at line 49 of file Patches.php.
Referenced by cweagans\Composer\Patches\checkPatches(), cweagans\Composer\Patches\gatherPatches(), cweagans\Composer\Patches\grabPatches(), and cweagans\Composer\Patches\writePatchReport().