for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gocobachi\Compressy\Adapter\BSDTar;
use Gocobachi\Compressy\Adapter\AbstractTarAdapter;
use Gocobachi\Compressy\Adapter\VersionProbe\BSDTarVersionProbe;
use Gocobachi\Compressy\Parser\ParserInterface;
use Gocobachi\Compressy\Resource\ResourceManager;
use Gocobachi\Compressy\ProcessBuilder\ProcessBuilderFactoryInterface;
/**
* BSDTAR allows you to create and extract files from archives using BSD tar
*
* @see http://people.freebsd.org/~kientzle/libarchive/man/bsdtar.1.txt
*/
class TarBSDTarAdapter extends AbstractTarAdapter
{
public function __construct(ParserInterface $parser, ResourceManager $manager, ProcessBuilderFactoryInterface $inflator, ProcessBuilderFactoryInterface $deflator)
parent::__construct($parser, $manager, $inflator, $deflator);
$this->probe = new BSDTarVersionProbe($inflator, $deflator);
}
* @inheritdoc
protected function getLocalOptions()
return array();
public static function getName()
return 'bsd-tar';
public static function getDefaultDeflatorBinaryName()
return array('bsdtar', 'tar');
public static function getDefaultInflatorBinaryName()
* {@inheritdoc}
protected function getListMembersOptions()
protected function getExtractOptions()
protected function getExtractMembersOptions()