diff --git a/core/lib/Drupal/Component/Archiver/ArchiverInterface.php b/core/lib/Drupal/Component/Archiver/ArchiverInterface.php index 3b2dc28..96d9992 100644 --- a/core/lib/Drupal/Component/Archiver/ArchiverInterface.php +++ b/core/lib/Drupal/Component/Archiver/ArchiverInterface.php @@ -13,18 +13,6 @@ interface ArchiverInterface { /** - * Constructs a new archiver instance. - * - * @param string $file_path - * The full system path of the archive to manipulate. Only local files - * are supported. If the file does not yet exist, it will be created if - * appropriate. - * - * @throws Drupal\Component\Archiver\ArchiverException - */ - public function __construct($file_path); - - /** * Adds the specified file or directory to the archive. * * @param string $file_path diff --git a/core/lib/Drupal/Component/Archiver/Tar.php b/core/lib/Drupal/Component/Archiver/Tar.php index 8b5ebda..f06f3e0 100644 --- a/core/lib/Drupal/Component/Archiver/Tar.php +++ b/core/lib/Drupal/Component/Archiver/Tar.php @@ -21,6 +21,13 @@ /** * Constructs a Tar object. + * + * @param string $file_path + * The full system path of the archive to manipulate. Only local files + * are supported. If the file does not yet exist, it will be created if + * appropriate. + * + * @throws Drupal\Component\Archiver\ArchiverException */ public function __construct($file_path) { $this->tar = new ArchiveTar($file_path); diff --git a/core/lib/Drupal/Component/Archiver/Zip.php b/core/lib/Drupal/Component/Archiver/Zip.php index 47bfb67..3f0a066 100644 --- a/core/lib/Drupal/Component/Archiver/Zip.php +++ b/core/lib/Drupal/Component/Archiver/Zip.php @@ -24,10 +24,14 @@ protected $zip; /** - * Constructs a Tar object. + * Constructs a Zip object. * * @param string $file_path - * The full system path of the archive to manipulate. + * The full system path of the archive to manipulate. Only local files + * are supported. If the file does not yet exist, it will be created if + * appropriate. + * + * @throws Drupal\Component\Archiver\ArchiverException */ public function __construct($file_path) { $this->zip = new ZipArchive();