projects
/
pharext
/
pharext.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
finished 1st round of refactoring
[pharext/pharext.org]
/
app
/
Pharext
/
Package.php
diff --git
a/app/Pharext/Package.php
b/app/Pharext/Package.php
index bb0d92ca2cbb7aa808bbb3e7bee7e15ace0b9eb4..fb91d368b932ad2a53b13a7849acf8916da4dca5 100644
(file)
--- a/
app/Pharext/Package.php
+++ b/
app/Pharext/Package.php
@@
-12,7
+12,7
@@
class Package
function __construct($git_url, $tag_name, $pkg_name, $options) {
$dir = (new Task\GitClone($git_url, $tag_name))->run();
function __construct($git_url, $tag_name, $pkg_name, $options) {
$dir = (new Task\GitClone($git_url, $tag_name))->run();
- $src = !empty($options
->pecl
)
+ $src = !empty($options
["pecl"]
)
? new SourceDir\Pecl($dir)
: new SourceDir\Git($dir);
$meta = Metadata::all() + [
? new SourceDir\Pecl($dir)
: new SourceDir\Git($dir);
$meta = Metadata::all() + [
@@
-20,7
+20,7
@@
class Package
"release" => $tag_name,
"license" => $src->getLicense(),
"stub" => "pharext_installer.php",
"release" => $tag_name,
"license" => $src->getLicense(),
"stub" => "pharext_installer.php",
- "type" => !empty($options
->zend
) ? "zend_extension" : "extension",
+ "type" => !empty($options
["zend"]
) ? "zend_extension" : "extension",
];
$this->file = (new Task\PharBuild($src, $meta))->run();
}
];
$this->file = (new Task\PharBuild($src, $meta))->run();
}