1
0
Fork 0

Remove getScript from CompletePackage (it is root-only)

pull/5401/head
Sven Wittevrongel 2016-06-03 12:00:17 +01:00
parent cccfb2fb22
commit 3ad5f1843b
4 changed files with 2 additions and 31 deletions

View File

@ -307,11 +307,6 @@ class AliasPackage extends BasePackage implements CompletePackageInterface
return $this->aliasOf->getDistMirrors();
}
public function getScripts()
{
return $this->aliasOf->getScripts();
}
public function getLicense()
{
return $this->aliasOf->getLicense();

View File

@ -25,26 +25,9 @@ class CompletePackage extends Package implements CompletePackageInterface
protected $authors;
protected $description;
protected $homepage;
protected $scripts = array();
protected $support = array();
protected $abandoned = false;
/**
* @param array $scripts
*/
public function setScripts(array $scripts)
{
$this->scripts = $scripts;
}
/**
* {@inheritDoc}
*/
public function getScripts()
{
return $this->scripts;
}
/**
* Set the repositories
*

View File

@ -19,13 +19,6 @@ namespace Composer\Package;
*/
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
*

View File

@ -66,9 +66,9 @@ interface RootPackageInterface extends CompletePackageInterface
public function getConfig();
/**
* Returns the root package's scripts
* Returns the scripts of this package
*
* @return array
* @return array array('script name' => array('listeners'))
*/
public function getScripts();