/**
* Try to determine the root path based on a component.
*
* @return string|boolean The root path or false if it could not be
* determined.
*/
private function _determineRootFromComponent()
{
if (!empty($this->_component)) {
try {
return $this->_component->repositoryRoot($this);
} catch (Components_Exception $e) {
$this->_errors[] = sprintf('Component %s has no repository root!', $this->_component->getName());
return false;
}
}
return false;
}