protected function getManifestFromUrlImport($url)
    {
        $extension = strtolower(pathinfo($url, PATHINFO_EXTENSION));

        if (static::FILE_EXTENSION != $extension) {
            throw new BadRequestException(
                "Only package files ending with '" .
                static::FILE_EXTENSION .
                "' are allowed for import."
            );
        }

        try {
            $this->zipFile = FileUtilities::importUrlFileToTemp($url);
        } catch (\Exception $ex) {
            throw new InternalServerErrorException("Failed to import package from $url. " . $ex->getMessage());
        }

        return $this->getManifestFromZipFile();
    }
protected function getManifestFromUrlImport($url)
    {
        $extension = strtolower(pathinfo($url, PATHINFO_EXTENSION));

        if (static::FILE_EXTENSION != $extension) {
            throw new BadRequestException(
                "Only package files ending with '" .
                static::FILE_EXTENSION .
                "' are allowed for import."
            );
        }

        try {
            $this->zipFile = FileUtilities::importUrlFileToTemp($url);
        } catch (\Exception $ex) {
            throw new InternalServerErrorException("Failed to import package from $url. " . $ex->getMessage());
        }

        return $this->getManifestFromZipFile();
    }
protected function getManifestFromUrlImport ( $ url ) { $ extension = strtolower ( pathinfo ( $ url , PATHINFO_EXTENSION ) ) ; if ( static :: FILE_EXTENSION != $ extension ) { throw new BadRequestException ( "Only package files ending with '" . static :: FILE_EXTENSION . "' are allowed for import." ) ; } try { $ this -> zipFile = FileUtilities :: importUrlFileToTemp ( $ url ) ; } catch ( \ Exception $ ex ) { throw new InternalServerErrorException ( "Failed to import package from $url. " . $ ex -> getMessage ( ) ) ; } return $ this -> getManifestFromZipFile ( ) ; }
Returns the manifest from url imported package file.

@param $url

@return array|string
@throws \DreamFactory\Core\Exceptions\BadRequestException
@throws \DreamFactory\Core\Exceptions\InternalServerErrorException
Returns the manifest from url imported package file .