solved dependencies and namespaces
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace BSR\Search;
|
||||
namespace BSR\BookSearch;
|
||||
|
||||
use BSR\Config\Configuration;
|
||||
use BSR\Webservice\Exception\WebException;
|
||||
use BSR\BookSearch\Exception\WebException;
|
||||
//use BSR\Webservice\Logger;
|
||||
|
||||
mb_http_output('UTF-8');
|
||||
24
src/BookSearch/Exception/WebException.php
Normal file
24
src/BookSearch/Exception/WebException.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace BSR\BookSearch\Exception;
|
||||
|
||||
class WebException extends \Exception
|
||||
{
|
||||
private $exceptionName;
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param string $reason
|
||||
* @param int $code
|
||||
*/
|
||||
function __construct($name, $reason, $code)
|
||||
{
|
||||
$this->exceptionName = $name;
|
||||
parent::__construct($reason, $code);
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return $this->exceptionName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user