remove caching share as caching should be done at a higher level

This commit is contained in:
Robin Appelman 2014-02-25 15:16:09 +01:00
commit 7adbe91c9a
2 changed files with 2 additions and 77 deletions

View file

@ -12,9 +12,6 @@ class Server {
const CLIENT = 'smbclient';
const LOCALE = 'en_US.UTF-8';
const CACHING_ENABLED = true;
const CACHING_DISABLED = false;
/**
* @var string $host
*/
@ -30,22 +27,15 @@ class Server {
*/
private $password;
/**
* @var bool $caching
*/
private $caching;
/**
* @param string $host
* @param string $user
* @param string $password
* @param bool $caching
*/
public function __construct($host, $user, $password, $caching = self::CACHING_DISABLED) {
public function __construct($host, $user, $password) {
$this->host = $host;
$this->user = $user;
$this->password = $password;
$this->caching = $caching;
}
/**
@ -131,11 +121,7 @@ class Server {
* @return Share
*/
public function getShare($name) {
if ($this->caching === self::CACHING_ENABLED) {
return new CachingShare($this, $name);
} else {
return new Share($this, $name);
}
return new Share($this, $name);
}
/**