original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Returns the manifest from url imported package file.
  
  @param $url
  
  @return array|string
  @throws \DreamFactory\Core\Exceptions\BadRequestException
  @throws \DreamFactory\Core\Exceptions\InternalServerErrorException
docstring_tokens: Returns the manifest from url imported package file .