PHP Класс cweagans\Composer\Patches

Наследование: implements Composer\Plugin\PluginInterface, implements Composer\EventDispatcher\EventSubscriberInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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 ( ) : Patches 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.

Описание методов

activate() публичный Метод

Apply plugin modifications to composer
public activate ( Composer\Composer $composer, Composer\IO\IOInterface $io )
$composer Composer\Composer
$io Composer\IO\IOInterface

checkPatches() публичный Метод

Before running composer install,
public checkPatches ( Composer\Script\Event $event )
$event Composer\Script\Event

executeCommand() защищенный Метод

Executes a shell command with escaping.
protected executeCommand ( string $cmd ) : boolean
$cmd string
Результат boolean

gatherPatches() публичный Метод

Gather patches from dependencies and store them for later use.
public gatherPatches ( Composer\Installer\PackageEvent $event )
$event Composer\Installer\PackageEvent

getAndApplyPatch() защищенный Метод

Apply a patch on code in the specified directory.
protected getAndApplyPatch ( Composer\Util\RemoteFilesystem $downloader, $install_path, $patch_url )
$downloader Composer\Util\RemoteFilesystem
$install_path
$patch_url

getPackageFromOperation() защищенный Метод

Get a Package object from an OperationInterface object.
protected getPackageFromOperation ( Composer\DependencyResolver\Operation\OperationInterface $operation ) : Composer\Package\PackageInterface
$operation Composer\DependencyResolver\Operation\OperationInterface
Результат Composer\Package\PackageInterface

getSubscribedEvents() публичный статический Метод

Returns an array of event names this subscriber wants to listen to.
public static getSubscribedEvents ( )

grabPatches() публичный Метод

Get the patches from root composer or external file
public grabPatches ( ) : Patches
Результат Patches

isPatchingEnabled() защищенный Метод

Checks if the root package enables patching.
protected isPatchingEnabled ( ) : boolean
Результат boolean Whether patching is enabled. Defaults to TRUE.

postInstall() публичный Метод

public postInstall ( Composer\Installer\PackageEvent $event )
$event Composer\Installer\PackageEvent

writePatchReport() защищенный Метод

Writes a patch report to the target directory.
protected writePatchReport ( array $patches, string $directory )
$patches array
$directory string

Описание свойств

$composer защищенное свойство

protected Composer,Composer $composer
Результат Composer\Composer

$eventDispatcher защищенное свойство

protected EventDispatcher $eventDispatcher
Результат EventDispatcher

$executor защищенное свойство

protected ProcessExecutor,Composer\Util $executor
Результат Composer\Util\ProcessExecutor

$io защищенное свойство

protected IOInterface,Composer\IO $io
Результат Composer\IO\IOInterface

$patches защищенное свойство

protected array $patches
Результат array