Puli\Manager\Conflict\DependencyGraph::getPath PHP Method

getPath() public method

Returns the path from a module name to a dependency.
public getPath ( string $moduleName, string $dependency ) : null | string[]
$moduleName string The module name.
$dependency string The name of the dependency.
return null | string[] The sorted module names on the path or `null` if no path was found.
    public function getPath($moduleName, $dependency)
    {
        if ($this->getPathDFS($moduleName, $dependency, $reversePath)) {
            return array_reverse($reversePath);
        }
        return null;
    }