Version 1
[yaffs-website] / vendor / alchemy / zippy / src / FileStrategy / TBz2FileStrategy.php
diff --git a/vendor/alchemy/zippy/src/FileStrategy/TBz2FileStrategy.php b/vendor/alchemy/zippy/src/FileStrategy/TBz2FileStrategy.php
new file mode 100644 (file)
index 0000000..a99b545
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+/*
+ * This file is part of Zippy.
+ *
+ * (c) Alchemy <info@alchemy.fr>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Alchemy\Zippy\FileStrategy;
+
+class TBz2FileStrategy extends AbstractFileStrategy
+{
+    /**
+     * {@inheritdoc}
+     */
+    protected function getServiceNames()
+    {
+        return array(
+            'Alchemy\\Zippy\\Adapter\\GNUTar\\TarBz2GNUTarAdapter',
+            'Alchemy\\Zippy\\Adapter\\BSDTar\\TarBz2BSDTarAdapter'
+        );
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getFileExtension()
+    {
+        return 'tbz2';
+    }
+}