fb91d368b932ad2a53b13a7849acf8916da4dca5
13 function __construct($git_url, $tag_name, $pkg_name, $options) {
14 $dir = (new Task\
GitClone($git_url, $tag_name))->run();
15 $src = !empty($options["pecl"])
16 ?
new SourceDir\
Pecl($dir)
17 : new SourceDir\
Git($dir);
18 $meta = Metadata
::all() +
[
20 "release" => $tag_name,
21 "license" => $src->getLicense(),
22 "stub" => "pharext_installer.php",
23 "type" => !empty($options["zend"]) ?
"zend_extension" : "extension",
25 $this->file
= (new Task\
PharBuild($src, $meta))->run();
28 function __toString() {
29 return (string) $this->file
;