Skip to content
Permalink
Browse files

fixes #2 - correctly set dsn

  • Loading branch information
s0enke committed Oct 27, 2011
1 parent 1a28e7d commit 73125de7d4b60a04d2e7946387be3e1bf3c84cd0
Showing with 9 additions and 2 deletions.
  1. +7 −1 classes/Client/Storage/Abstract.php
  2. +2 −1 classes/Client/Storage/Filesystem.php
@@ -63,7 +63,13 @@ public static function factory($type, $dsn)
return self::$instances[$dsn];
}

public function getDsn() {
protected function __construct($dsn)
{
$this->dsn = $dsn;
}

public function getDsn()
{
return $this->dsn;
}

@@ -57,7 +57,8 @@ class dropr_Client_Storage_Filesystem extends dropr_Client_Storage_Abstract

protected function __construct($path)
{

parent::__construct($path);

if (!is_string($path)) {
throw new dropr_Client_Exception("No valid path given");
}

0 comments on commit 73125de

Please sign in to comment.
You can’t perform that action at this time.