public function getVendorPaths()
    {
        $base  = dirname($this->path);
        $paths = [];
        foreach ($this->xml->xpath('/libraries/library/location') as $location) {
            $location = trim((string) $location, '/');
            $location = $base.'/'.$location;

            if (strpos($location, '*') !== false) {
                $locations = glob($location);
                if (empty($locations)) {
                    throw new \RuntimeException(sprintf('Failed to run glob on path: %s', $location));
                }
                $paths = array_merge($paths, $locations);
            } elseif (!file_exists($location)) {
                throw new \RuntimeException(sprintf('The %s contains a non-existent path: %s', $this->path, $location));
            } else {
                $paths[] = $location;
            }
        }

        return $paths;
    }
public function getVendorPaths()
    {
        $base  = dirname($this->path);
        $paths = [];
        foreach ($this->xml->xpath('/libraries/library/location') as $location) {
            $location = trim((string) $location, '/');
            $location = $base.'/'.$location;

            if (strpos($location, '*') !== false) {
                $locations = glob($location);
                if (empty($locations)) {
                    throw new \RuntimeException(sprintf('Failed to run glob on path: %s', $location));
                }
                $paths = array_merge($paths, $locations);
            } elseif (!file_exists($location)) {
                throw new \RuntimeException(sprintf('The %s contains a non-existent path: %s', $this->path, $location));
            } else {
                $paths[] = $location;
            }
        }

        return $paths;
    }
public function getVendorPaths ( ) { $ base = dirname ( $ this -> path ) ; $ paths = [ ] ; foreach ( $ this -> xml -> xpath ( '/libraries/library/location' ) as $ location ) { $ location = trim ( ( string ) $ location , '/' ) ; $ location = $ base . '/' . $ location ; if ( strpos ( $ location , '*' ) !== false ) { $ locations = glob ( $ location ) ; if ( empty ( $ locations ) ) { throw new \ RuntimeException ( sprintf ( 'Failed to run glob on path: %s' , $ location ) ) ; } $ paths = array_merge ( $ paths , $ locations ) ; } elseif ( ! file_exists ( $ location ) ) { throw new \ RuntimeException ( sprintf ( 'The %s contains a non-existent path: %s' , $ this -> path , $ location ) ) ; } else { $ paths [ ] = $ location ; } } return $ paths ; }
Returns all the third party library paths from the XML file.

@return array
Returns all the third party library paths from the XML file .