popsu-d9/old.vendor/alchemy/zippy/src/Adapter/BSDTar/TarBz2BSDTarAdapter.php
2022-04-27 11:30:43 +02:00

26 lines
552 B
PHP

<?php
namespace Alchemy\Zippy\Adapter\BSDTar;
use Alchemy\Zippy\Adapter\Resource\ResourceInterface;
use Alchemy\Zippy\Exception\NotSupportedException;
class TarBz2BSDTarAdapter extends TarBSDTarAdapter
{
/**
* @inheritdoc
*/
protected function doAdd(ResourceInterface $resource, $files, $recursive)
{
throw new NotSupportedException('Updating a compressed tar archive is not supported.');
}
/**
* @inheritdoc
*/
protected function getLocalOptions()
{
return array('--bzip2');
}
}