$rolesWithoutPackageNamePrefix
$rolesWithoutPackageNamePrefix :
Extractor for pear packages.
Composer cannot rely on tar files structure when place it inside package target dir. Correct source files disposition must be read from package.xml This extract pear package source files to target dir.
$filesystem : \Composer\Util\Filesystem
extractTo(string $target, array $roles = array('php' => '/', 'script' => '/bin'), array $vars = array())
Installs PEAR source files according to package.xml definitions and removes extracted files
string | $target | target install location. all source installation would be performed relative to target path. |
array | $roles | types of files to install. default role for PEAR source files are 'php'. |
array | $vars | used for replacement tasks |
copyFiles(array $files, $source, $target, array $roles, array $vars)
Perform copy actions on files
array | $files | array of copy actions ('from', 'to') with relative paths |
$source | string path to source dir. |
|
$target | string path to destination dir |
|
array | $roles | array [role => roleRoot] relative root for files having that role |
array | $vars | list of values can be used for replacement tasks |
buildCopyActions(string $source, array $roles, array $vars) : array
Builds list of copy and list of remove actions that would transform extracted PEAR tarball into installed package.
string | $source | string path to extracted files |
array | $roles | array [role => roleRoot] relative root for files having that role |
array | $vars | list of values can be used for replacement tasks |
array of 'source' => 'target', where source is location of file in the tarball (relative to source path, and target is destination of file (also relative to $source path)