revert 3ad5f1843b
parent
b80c33ba5c
commit
ca6f7b365b
|
@ -307,6 +307,11 @@ class AliasPackage extends BasePackage implements CompletePackageInterface
|
||||||
return $this->aliasOf->getDistMirrors();
|
return $this->aliasOf->getDistMirrors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getScripts()
|
||||||
|
{
|
||||||
|
return $this->aliasOf->getScripts();
|
||||||
|
}
|
||||||
|
|
||||||
public function getLicense()
|
public function getLicense()
|
||||||
{
|
{
|
||||||
return $this->aliasOf->getLicense();
|
return $this->aliasOf->getLicense();
|
||||||
|
|
|
@ -25,9 +25,26 @@ class CompletePackage extends Package implements CompletePackageInterface
|
||||||
protected $authors;
|
protected $authors;
|
||||||
protected $description;
|
protected $description;
|
||||||
protected $homepage;
|
protected $homepage;
|
||||||
|
protected $scripts = array();
|
||||||
protected $support = array();
|
protected $support = array();
|
||||||
protected $abandoned = false;
|
protected $abandoned = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $scripts
|
||||||
|
*/
|
||||||
|
public function setScripts(array $scripts)
|
||||||
|
{
|
||||||
|
$this->scripts = $scripts;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getScripts()
|
||||||
|
{
|
||||||
|
return $this->scripts;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the repositories
|
* Set the repositories
|
||||||
*
|
*
|
||||||
|
|
|
@ -19,6 +19,13 @@ namespace Composer\Package;
|
||||||
*/
|
*/
|
||||||
interface CompletePackageInterface extends PackageInterface
|
interface CompletePackageInterface extends PackageInterface
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Returns the scripts of this package
|
||||||
|
*
|
||||||
|
* @return array array('script name' => array('listeners'))
|
||||||
|
*/
|
||||||
|
public function getScripts();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array of repositories
|
* Returns an array of repositories
|
||||||
*
|
*
|
||||||
|
|
|
@ -66,9 +66,9 @@ interface RootPackageInterface extends CompletePackageInterface
|
||||||
public function getConfig();
|
public function getConfig();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the scripts of this package
|
* Returns the root package's scripts
|
||||||
*
|
*
|
||||||
* @return array array('script name' => array('listeners'))
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getScripts();
|
public function getScripts();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue