Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Moved Transfer one level up
Browse files Browse the repository at this point in the history
- Moved Zend\File\Transfer\Transfer to Zend\File\Transfer
- Fixed tests that reference it
- Fixed other unrelated failing tests as I encountered them searching for File
  Transfer tests
  • Loading branch information
weierophinney committed Jul 13, 2010
1 parent 65d2235 commit 90cc750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Transfer/Transfer.php → src/Transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function setAdapter($adapter, $direction = false, $options = array())
$direction = (integer) $direction;
$this->_adapter[$direction] = new $adapter($options);
if (!$this->_adapter[$direction] instanceof Adapter\AbstractAdapter) {
throw new Exception("Adapter " . $adapter . " does not extend Zend_File_Transfer_Adapter_Abstract");
throw new Transfer\Exception("Adapter " . $adapter . " does not extend Zend_File_Transfer_Adapter_Abstract");
}

return $this;
Expand Down Expand Up @@ -120,6 +120,6 @@ public function __call($method, array $options)
return call_user_func_array(array($this->_adapter[$direction], $method), $options);
}

throw new Exception("Unknown method '" . $method . "' called!");
throw new Transfer\Exception("Unknown method '" . $method . "' called!");
}
}

0 comments on commit 90cc750

Please sign in to comment.