src/Nooku/Composer/Installer/NookuComponent.php
protected function _getKoowaManifest(PackageInterface $package)
    {
        $path      = $this->getInstallPath($package);
        $directory = new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::KEY_AS_PATHNAME);
        $iterator  = new \RecursiveIteratorIterator($directory);
        $regex     = new \RegexIterator($iterator, '/koowa-component\.xml/', \RegexIterator::GET_MATCH);
        $files     = iterator_to_array($regex);

        if (empty($files)) {
            return false;
        }

        $manifests = array_keys($files);
        $manifest  = simplexml_load_file($manifests[0]);

        if (!($manifest instanceof \SimpleXMLElement))
        {
            throw new \InvalidArgumentException(
                'Failed to load `koowa-component.xml` manifest for package `'.$package->getPrettyName().'`.'
            );
        }

        return $manifest;
    }
protected function _getKoowaManifest(PackageInterface $package)
    {
        $path      = $this->getInstallPath($package);
        $directory = new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::KEY_AS_PATHNAME);
        $iterator  = new \RecursiveIteratorIterator($directory);
        $regex     = new \RegexIterator($iterator, '/koowa-component\.xml/', \RegexIterator::GET_MATCH);
        $files     = iterator_to_array($regex);

        if (empty($files)) {
            return false;
        }

        $manifests = array_keys($files);
        $manifest  = simplexml_load_file($manifests[0]);

        if (!($manifest instanceof \SimpleXMLElement))
        {
            throw new \InvalidArgumentException(
                'Failed to load `koowa-component.xml` manifest for package `'.$package->getPrettyName().'`.'
            );
        }

        return $manifest;
    }
protected function _getKoowaManifest ( PackageInterface $ package ) { $ path = $ this -> getInstallPath ( $ package ) ; $ directory = new \ RecursiveDirectoryIterator ( $ path , \ RecursiveDirectoryIterator :: KEY_AS_PATHNAME ) ; $ iterator = new \ RecursiveIteratorIterator ( $ directory ) ; $ regex = new \ RegexIterator ( $ iterator , '/koowa-component\.xml/' , \ RegexIterator :: GET_MATCH ) ; $ files = iterator_to_array ( $ regex ) ; if ( empty ( $ files ) ) { return false ; } $ manifests = array_keys ( $ files ) ; $ manifest = simplexml_load_file ( $ manifests [ 0 ] ) ; if ( ! ( $ manifest instanceof \ SimpleXMLElement ) ) { throw new \ InvalidArgumentException ( 'Failed to load `koowa-component.xml` manifest for package `' . $ package -> getPrettyName ( ) . '`.' ) ; } return $ manifest ; }
Attempts to locate and initialize the koowa-component.xml manifest

@param PackageInterface $package
@return bool|\SimpleXMLElement   Instance of SimpleXMLElement or false on failure
@throws `InvalidArgumentException` on failure to load the XML manifest
Attempts to locate and initialize the koowa - component . xml manifest