| Current Path : /home/jeromecohp/www/plugins/system/yooessentials/modules/core-joomla/src/ |
| Current File : /home/jeromecohp/www/plugins/system/yooessentials/modules/core-joomla/src/Unzipper.php |
<?php
/**
* @package Essentials YOOtheme Pro (Freemium) 2.0.19 build 1026.0920
* @author ZOOlanders https://www.zoolanders.com
* @copyright Copyright (C) Joolanders, SL
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
namespace ZOOlanders\YOOessentials\Joomla;
use Joomla\Archive\Archive as JoomlaUnzipper;
use ZOOlanders\YOOessentials\Unzipper as UnzipperInterface;
class Unzipper implements UnzipperInterface
{
/**
* @var JoomlaUnzipper
*/
public $unzipper;
/**
* Constructor.
*/
public function __construct(JoomlaUnzipper $unzipper)
{
$this->unzipper = new $unzipper();
}
public function unzip(string $file, string $dest): bool
{
return $this->unzipper->extract($file, $dest);
}
}