private function _runCircularDependencyCheck($resourceId) {
        $this->_unresolved[$resourceId] = $resourceId;
        foreach ($this->_resourceGraph[$resourceId] as $dependency) {
            if (!in_array($dependency, $this->_resolved)) {
                if (in_array($dependency, $this->_unresolved)) {
                    return $this->_getError(2, $resourceId);
                }
                //return recursive error if any
                if ($error = $this->runDependencyCheck($dependency)) {
                    return $error;
                }
            }
        }
        unset($this->_unresolved[$resourceId]);
        $this->_resolved[$resourceId] = $resourceId;
    }
private function _runCircularDependencyCheck($resourceId) {
        $this->_unresolved[$resourceId] = $resourceId;
        foreach ($this->_resourceGraph[$resourceId] as $dependency) {
            if (!in_array($dependency, $this->_resolved)) {
                if (in_array($dependency, $this->_unresolved)) {
                    return $this->_getError(2, $resourceId);
                }
                //return recursive error if any
                if ($error = $this->runDependencyCheck($dependency)) {
                    return $error;
                }
            }
        }
        unset($this->_unresolved[$resourceId]);
        $this->_resolved[$resourceId] = $resourceId;
    }
private function _runCircularDependencyCheck ( $ resourceId ) { $ this -> _unresolved [ $ resourceId ] = $ resourceId ; foreach ( $ this -> _resourceGraph [ $ resourceId ] as $ dependency ) { if ( ! in_array ( $ dependency , $ this -> _resolved ) ) { if ( in_array ( $ dependency , $ this -> _unresolved ) ) { return $ this -> _getError ( 2 , $ resourceId ) ; } //return recursive error if any if ( $ error = $ this -> runDependencyCheck ( $ dependency ) ) { return $ error ; } } } unset ( $ this -> _unresolved [ $ resourceId ] ) ; $ this -> _resolved [ $ resourceId ] = $ resourceId ; }
This method checks a resource and its dependencies for any situations where
there is a case that causes the dependnecy to be not resolvable.
@param string The resource you would like to run the check for.
@return mixed Null if no error. Error object if it finds an error.
This method checks a resource and its dependencies for any situations where there is a case that causes the dependnecy to be not resolvable .