class PearPackageExtractor (View source)

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)

No description

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

__construct($file)

Parameters

$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

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