final public function checkInjections($className) {
        if (is_array($this->inject())) {
            foreach ($this->inject() as $classArray) {
                if (!is_array($classArray) ||
                        (is_array($classArray) && !isset($classArray['class'])) ||
                        (is_array($classArray) && !class_exists($classArray['class'])))
                    continue;

                if ($classArray['class'] === $className)
                    return false;

                if (!$this->canInject($classArray, $className))
                    return false;
            }
        }

        return true;
    }
final public function checkInjections($className) {
        if (is_array($this->inject())) {
            foreach ($this->inject() as $classArray) {
                if (!is_array($classArray) ||
                        (is_array($classArray) && !isset($classArray['class'])) ||
                        (is_array($classArray) && !class_exists($classArray['class'])))
                    continue;

                if ($classArray['class'] === $className)
                    return false;

                if (!$this->canInject($classArray, $className))
                    return false;
            }
        }

        return true;
    }
final public function checkInjections ( $ className ) { if ( is_array ( $ this -> inject ( ) ) ) { foreach ( $ this -> inject ( ) as $ classArray ) { if ( ! is_array ( $ classArray ) || ( is_array ( $ classArray ) && ! isset ( $ classArray [ 'class' ] ) ) || ( is_array ( $ classArray ) && ! class_exists ( $ classArray [ 'class' ] ) ) ) continue ; if ( $ classArray [ 'class' ] === $ className ) return false ; if ( ! $ this -> canInject ( $ classArray , $ className ) ) return false ; } } return true ; }
Checks the injection for cyclic dependencies
@param string $className
@return boolean
Checks the injection for cyclic dependencies