|
@@ -77,10 +77,9 @@ class Installer
|
|
|
protected $eventDispatcher;
|
|
|
|
|
|
protected $preferSource = false;
|
|
|
+ protected $devMode = false;
|
|
|
protected $dryRun = false;
|
|
|
protected $verbose = false;
|
|
|
- protected $installRecommends = true;
|
|
|
- protected $installSuggests = false;
|
|
|
protected $update = false;
|
|
|
|
|
|
/**
|
|
@@ -332,14 +331,6 @@ class Installer
|
|
|
{
|
|
|
$links = $this->package->getRequires();
|
|
|
|
|
|
- if ($this->installRecommends) {
|
|
|
- $links = array_merge($links, $this->package->getRecommends());
|
|
|
- }
|
|
|
-
|
|
|
- if ($this->installSuggests) {
|
|
|
- $links = array_merge($links, $this->package->getSuggests());
|
|
|
- }
|
|
|
-
|
|
|
return $links;
|
|
|
}
|
|
|
|
|
@@ -379,7 +370,7 @@ class Installer
|
|
|
* @param boolean $dryRun
|
|
|
* @return Installer
|
|
|
*/
|
|
|
- public function setDryRun($dryRun=true)
|
|
|
+ public function setDryRun($dryRun = true)
|
|
|
{
|
|
|
$this->dryRun = (boolean) $dryRun;
|
|
|
|
|
@@ -387,53 +378,40 @@ class Installer
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * install recommend packages
|
|
|
- *
|
|
|
- * @param boolean $noInstallRecommends
|
|
|
- * @return Installer
|
|
|
- */
|
|
|
- public function setInstallRecommends($installRecommends=true)
|
|
|
- {
|
|
|
- $this->installRecommends = (boolean) $installRecommends;
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * also install suggested packages
|
|
|
+ * prefer source installation
|
|
|
*
|
|
|
- * @param boolean $installSuggests
|
|
|
+ * @param boolean $preferSource
|
|
|
* @return Installer
|
|
|
*/
|
|
|
- public function setInstallSuggests($installSuggests=true)
|
|
|
+ public function setPreferSource($preferSource = true)
|
|
|
{
|
|
|
- $this->installSuggests = (boolean) $installSuggests;
|
|
|
+ $this->preferSource = (boolean) $preferSource;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * prefer source installation
|
|
|
+ * update packages
|
|
|
*
|
|
|
- * @param boolean $preferSource
|
|
|
+ * @param boolean $update
|
|
|
* @return Installer
|
|
|
*/
|
|
|
- public function setPreferSource($preferSource=true)
|
|
|
+ public function setUpdate($update = true)
|
|
|
{
|
|
|
- $this->preferSource = (boolean) $preferSource;
|
|
|
+ $this->update = (boolean) $update;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * update packages
|
|
|
+ * enables dev packages
|
|
|
*
|
|
|
* @param boolean $update
|
|
|
* @return Installer
|
|
|
*/
|
|
|
- public function setUpdate($update=true)
|
|
|
+ public function setDevMode($devMode = true)
|
|
|
{
|
|
|
- $this->update = (boolean) $update;
|
|
|
+ $this->devMode = (boolean) $devMode;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
@@ -444,7 +422,7 @@ class Installer
|
|
|
* @param boolean $verbose
|
|
|
* @return Installer
|
|
|
*/
|
|
|
- public function setVerbose($verbose=true)
|
|
|
+ public function setVerbose($verbose = true)
|
|
|
{
|
|
|
$this->verbose = (boolean) $verbose;
|
|
|
|