Move Exceptions to their own namespace

This commit is contained in:
Robin Appelman 2014-08-06 23:15:12 +02:00
commit 5c57d2d094
22 changed files with 233 additions and 123 deletions

View file

@ -7,6 +7,9 @@
namespace Icewind\SMB;
use Icewind\SMB\Exception\AuthenticationException;
use Icewind\SMB\Exception\InvalidHostException;
class Server {
const CLIENT = 'smbclient';
const LOCALE = 'en_US.UTF-8';
@ -77,8 +80,8 @@ class Server {
/**
* @return \Icewind\SMB\IShare[]
*
* @throws \Icewind\SMB\AuthenticationException
* @throws \Icewind\SMB\InvalidHostException
* @throws \Icewind\SMB\Exception\AuthenticationException
* @throws \Icewind\SMB\Exception\InvalidHostException
*/
public function listShares() {
$command = Server::CLIENT . ' --authentication-file=/proc/self/fd/3' .