public function getMethodDependencies(Horde_Injector $injector, ReflectionMethod $method)
{
$dependencies = array();
try {
foreach ($method->getParameters() as $parameter) {
$dependencies[] = $this->getParameterDependency($injector, $parameter);
}
} catch (Horde_Injector_Exception $e) {
throw new Horde_Injector_Exception("{$method} has unfulfilled dependencies ({$parameter})", 0, $e);
}
return $dependencies;
}