$patchphp = new PatchPHP('patch-name');
$patchphp->fetchDiff( 'http://remote.url/patch-1.diff' );
$patchphp->patch();
OR:
$patchphp = new PatchPHP('patch-name');
$patchphp->diff =<<patch();
Exibir arquivo
Open project: phpbrew/phpbrew
Property | Type | Description | |
---|---|---|---|
$diff | |||
$patchName |
Method | Description | |
---|---|---|
__construct ( $patchName = null ) | ||
fetchDiff ( string $url ) | fetch remote diff. | |
getPatchFilename ( ) | ||
patch ( ) | patch file. |