Composer API
Class

Composer\Downloader\PearPackageExtractor

class PearPackageExtractor

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.

Methods

__construct($file)

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

Details

at line 33
public __construct($file)

Parameters

$file

at line 52
public 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

Parameters

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

Exceptions

RuntimeException
UnexpectedValueException