Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Gunnar Wrobel (wrobel@pardus.de)
Exemplo n.º 1
0
 /**
  * Try to resolve a dependency into a component.
  *
  * @param Components_Component_Dependency $dependency The dependency.
  * @param array                           $options    Additional options.
  * <pre>
  *  - allow_remote: May the resolver try to resolve to a remote channel?
  *  - order:        Order of stability preference.
  * </pre>
  *
  * @return Components_Component|boolean The component if the name could be
  *                                      resolved.
  */
 public function resolveDependency(Components_Component_Dependency $dependency, $options)
 {
     return $this->resolveName($dependency->getName(), $dependency->getChannel(), $options);
 }
Exemplo n.º 2
0
 /**
  * List an external package as dependency.
  *
  * @param Components_Pear_Dependencies $dependencies The package dependencies.
  * @param int                          $level        The current list level.
  *
  * @return NULL
  */
 private function _listExternal(Components_Component_Dependency $dependency, $level, $options)
 {
     $this->_element('yellow', $level, $dependency->key(), $dependency->getName(), $dependency->channelOrType(), '(NOT RESOLVED) ***STOP***', $options);
 }