Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 protected function extract($file, $path)
 {
     parent::extract($file, $path);
     if (file_exists($path . '/package.sig')) {
         unlink($path . '/package.sig');
     }
     if (file_exists($path . '/package.xml')) {
         unlink($path . '/package.xml');
     }
 }
 /**
  * {@inheritDoc}
  */
 protected function extract($file, $path)
 {
     try {
         /**
          * Extract file via PharData
          *
          * @see Composer\Downloader\TarDownloader::extract()
          */
         parent::extract($file, $path);
     } catch (\UnexpectedValueException $e) {
         $output = $this->extractViaCli($file, $path);
         if (null !== $output) {
             throw new FilesystemException('There are errors on unpacking the archive by tar CLI command:' . PHP_EOL . $output, null, $e);
         }
     }
 }
Ejemplo n.º 3
0
 /**
  * {@inheritDoc}
  */
 protected function extract($file, $path)
 {
     parent::extract($file, $path);
     @unlink($path . '/package.sig');
     @unlink($path . '/package.xml');
 }