This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/vendor/alchemy/zippy/src/Adapter/GNUTar/TarBz2GNUTarAdapter.php
2018-11-23 12:29:20 +00:00

25 lines
552 B
PHP

<?php
namespace Alchemy\Zippy\Adapter\GNUTar;
use Alchemy\Zippy\Adapter\Resource\ResourceInterface;
use Alchemy\Zippy\Exception\NotSupportedException;
class TarBz2GNUTarAdapter extends TarGNUTarAdapter
{
/**
* @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');
}
}