private function detectCircularDepedency($appName, $node, $getDependency)
    {
        $todo = [];
        foreach ($this->nodeFamilyTree as $app => $appNodes) {
            foreach ($appNodes as $appNode) {
                $todo[$appNode->getNameWithApp()] = $getDependency($appNode->getNameWithApp());
            }
        }
        Tools::topologicalSort($todo);
    }
private function detectCircularDepedency($appName, $node, $getDependency)
    {
        $todo = [];
        foreach ($this->nodeFamilyTree as $app => $appNodes) {
            foreach ($appNodes as $appNode) {
                $todo[$appNode->getNameWithApp()] = $getDependency($appNode->getNameWithApp());
            }
        }
        Tools::topologicalSort($todo);
    }
private function detectCircularDepedency ( $ appName , $ node , $ getDependency ) { $ todo = [ ] ; foreach ( $ this -> nodeFamilyTree as $ app => $ appNodes ) { foreach ( $ appNodes as $ appNode ) { $ todo [ $ appNode -> getNameWithApp ( ) ] = $ getDependency ( $ appNode -> getNameWithApp ( ) ) ; } } Tools :: topologicalSort ( $ todo ) ; }
Find any cyclic dependencies.

@param $appName
@param $node
@param $getDependency

@throws \Eddmash\PowerOrm\Exception\CircularDependencyError
Find any cyclic dependencies .