|
@ -105,6 +105,11 @@ class DependencyGraph |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (sizeof($state) == 0) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new \Exception('Cannot solve dependency graph -- no edge nodes. Circular dependency?'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Then walk through the array and insert each node's dependencies before |
|
|
// Then walk through the array and insert each node's dependencies before |
|
|
// it recursively. |
|
|
// it recursively. |
|
|
$iter = 0; |
|
|
$iter = 0; |
|
|