diff --git a/composer.json b/composer.json index 84a52ba..5999641 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name" : "bsr/search", - "description" : "Bsr solr search module - requiring webservice for exception class", + "name" : "bsr/booksearch", + "description" : "Bsr solr search module", "authors" : [ { "name" : "Simon" @@ -9,17 +9,17 @@ "name" : "Guillermo" } ], + "autoload": { + "psr-4": {"BSR\\" : "src/"} + }, "repositories" : [ { "type" : "vcs", - "url" : "https://usrpath@bitbucket.org/usrpath/webservice.git" + "url" : "https://usrpath@bitbucket.org/usrpath/bsrconf.git" } ], - "autoload": { - "psr-4": {"BSR\\Search\\" : "src/"} - }, "require" : { - "bsr/webservice" : "*" + "bsr/config" : "v0.0.1" }, "require-dev": { "pds/skeleton": "^1.0", diff --git a/src/Search/BookSearch.php b/src/BookSearch/BookSearch.php similarity index 99% rename from src/Search/BookSearch.php rename to src/BookSearch/BookSearch.php index bcb3782..e09da91 100644 --- a/src/Search/BookSearch.php +++ b/src/BookSearch/BookSearch.php @@ -1,9 +1,9 @@ exceptionName = $name; + parent::__construct($reason, $code); + } + + public function getName() + { + return $this->exceptionName; + } +}