0cfd175c65a581341feb75c79902acab798e0f22
[yaffs-website] / vendor / alchemy / zippy / src / Adapter / BSDTar / TarGzBSDTarAdapter.php
1 <?php
2
3 namespace Alchemy\Zippy\Adapter\BSDTar;
4
5 use Alchemy\Zippy\Adapter\Resource\ResourceInterface;
6 use Alchemy\Zippy\Exception\NotSupportedException;
7
8 class TarGzBSDTarAdapter extends TarBSDTarAdapter
9 {
10     /**
11      * @inheritdoc
12      */
13     protected function doAdd(ResourceInterface $resource, $files, $recursive)
14     {
15         throw new NotSupportedException('Updating a compressed tar archive is not supported.');
16     }
17
18     /**
19      * @inheritdoc
20      */
21     protected function getLocalOptions()
22     {
23         return array('--gzip');
24     }
25 }