|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for cweagans\Composer\Patches:
Collaboration diagram for cweagans\Composer\Patches: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, and cweagans\Composer\Patches\$io.
| 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, cweagans\Composer\Patches\grabPatches(), and cweagans\Composer\Patches\isPatchingEnabled().
Here is the call graph for this function:
|
protected |
Executes a shell command with escaping.
| string | $cmd |
Definition at line 407 of file Patches.php.
References $data, $index, cweagans\Composer\Patches\$io, Sabre\VObject\$output, and $type.
Referenced by cweagans\Composer\Patches\getAndApplyPatch().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
|
protected |
Apply a patch on code in the specified directory.
| RemoteFilesystem | $downloader | |
| $install_path | ||
| $patch_url |
Exception
Definition at line 313 of file Patches.php.
References $filename, and cweagans\Composer\Patches\executeCommand().
Here is the call graph for this function:
|
protected |
Get a Package object from an OperationInterface object.
| OperationInterface | $operation |
Exception
Definition at line 291 of file Patches.php.
Referenced by cweagans\Composer\Patches\gatherPatches().
Here is the caller graph for this function:
|
static |
Returns an array of event names this subscriber wants to listen to.
Definition at line 68 of file Patches.php.
| cweagans\Composer\Patches::grabPatches | ( | ) |
Get the patches from root composer or external file.
Exception
Definition at line 181 of file Patches.php.
References cweagans\Composer\Patches\$patches.
Referenced by cweagans\Composer\Patches\checkPatches(), and cweagans\Composer\Patches\gatherPatches().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
protected |
Writes a patch report to the target directory.
| array | $patches | |
| string | $directory |
Definition at line 391 of file Patches.php.
References $description, Sabre\VObject\$output, cweagans\Composer\Patches\$patches, and $url.
|
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().