src/Compound/CompoundGenerator.php
private function doesEntityExistInTree(EntityPackage $entity_package, $requirement)
    {
        foreach ($entity_package->getFlattenedRequiredPackages() as $required_entity_package) {
            if ($required_entity_package->getEntityContent()->hasClass($requirement)) {
                return true;
            }
        }
        return false;
    }
private function doesEntityExistInTree(EntityPackage $entity_package, $requirement)
    {
        foreach ($entity_package->getFlattenedRequiredPackages() as $required_entity_package) {
            if ($required_entity_package->getEntityContent()->hasClass($requirement)) {
                return true;
            }
        }
        return false;
    }
private function doesEntityExistInTree ( EntityPackage $ entity_package , $ requirement ) { foreach ( $ entity_package -> getFlattenedRequiredPackages ( ) as $ required_entity_package ) { if ( $ required_entity_package -> getEntityContent ( ) -> hasClass ( $ requirement ) ) { return true ; } } return false ; }
In all other cases within this class, we use the PackageContentProvider to get the package
content. In this case we bypass it since we really want to know whether the entity exists.
@param EntityPackage $entity_package
@param string $requirement
@return boolean
In all other cases within this class we use the PackageContentProvider to get the package content . In this case we bypass it since we really want to know whether the entity exists .