Returns whether a module directly depends on another module.
public hasDependency ( string $moduleName, string $dependency, boolean $recursive = true ) : boolean | ||
$moduleName | string | The module name. |
$dependency | string | The name of the dependency. |
$recursive | boolean | Whether to take recursive dependencies into account. |
return | boolean | Whether an edge exists from the origin to the target module. |