getDependencies() public method

Retrieve the dependencies for the specified package release.
public getDependencies ( string $package, string $version ) : array
$package string The package name.
$version string The package version.
return array The package dependencies.
コード例 #1
0
ファイル: Remote.php プロジェクト: jubinpatel/horde
 /**
  * Return the dependencies for the component.
  *
  * @return array The component dependencies.
  */
 public function getDependencies()
 {
     return $this->_remote->getDependencies($this->getName(), $this->getVersion());
 }
コード例 #2
0
ファイル: remote.php プロジェクト: jubinpatel/horde
 *
 * @category Horde
 * @package  Horde_Pear
 * @author   Gunnar Wrobel <*****@*****.**>
 * @license  http://www.horde.org/licenses/lgpl21 LGPL 2.1
 * @link     http://www.horde.org/libraries/Horde_Pear
 */
/**
 * The Autoloader allows us to omit "require/include" statements.
 */
require_once 'Horde/Autoloader/Default.php';
$pear = new Horde_Pear_Remote();
print $pear->getChannel();
print "\n\n";
print join("\n", $pear->listPackages());
print "\n\n";
print $pear->getLatestRelease('Horde_Core');
print "\n\n";
print $pear->getLatestDownloadUri('Horde_Core');
print "\n\n";
print_r($pear->getLatestDetails('Horde_Core'));
print "\n\n";
print $pear->releaseExists('Horde_Core', '1.7.0');
print "\n\n";
print count($pear->getDependencies('Horde_Exception', '1.0.0'));
print "\n\n";
print $pear->getPackageXml('Horde_Exception', '1.0.0')->getName();
print "\n\n";
$pear = new Horde_Pear_Remote('pear.phpunit.de');
print join("\n", $pear->listPackages());
print "\n\n";