More tidying.
[yaffs-website] / vendor / drupal / console / src / Zippy / Adapter / TarGzGNUTarForWindowsAdapter.php
1 <?php
2
3 /**
4  * @file
5  * Contains Drupal\Console\Zippy\Adapter\TarGzGNUTarForWindowsAdapter.
6  */
7
8 namespace Drupal\Console\Zippy\Adapter;
9
10 use Alchemy\Zippy\Adapter\GNUTar\TarGzGNUTarAdapter;
11 use Alchemy\Zippy\Adapter\Resource\ResourceInterface;
12 use Alchemy\Zippy\Exception\NotSupportedException;
13
14 /**
15  * Class TarGzGNUTarForWindowsAdapter
16  *
17  * @package Drupal\Console\Zippy\Adapter
18  */
19 class TarGzGNUTarForWindowsAdapter extends TarGzGNUTarAdapter
20 {
21     /**
22      * @inheritdoc
23      */
24     protected function doAdd(ResourceInterface $resource, $files, $recursive)
25     {
26         throw new NotSupportedException('Updating a compressed tar archive is not supported.');
27     }
28
29     /**
30      * @inheritdoc
31      */
32     protected function getLocalOptions()
33     {
34         return array_merge(parent::getLocalOptions(), ['--force-local']);
35     }
36 }