solved dependencies and namespaces
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "bsr/search",
|
"name" : "bsr/booksearch",
|
||||||
"description" : "Bsr solr search module - requiring webservice for exception class",
|
"description" : "Bsr solr search module",
|
||||||
"authors" : [
|
"authors" : [
|
||||||
{
|
{
|
||||||
"name" : "Simon"
|
"name" : "Simon"
|
||||||
@@ -9,17 +9,17 @@
|
|||||||
"name" : "Guillermo"
|
"name" : "Guillermo"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {"BSR\\" : "src/"}
|
||||||
|
},
|
||||||
"repositories" : [
|
"repositories" : [
|
||||||
{
|
{
|
||||||
"type" : "vcs",
|
"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" : {
|
"require" : {
|
||||||
"bsr/webservice" : "*"
|
"bsr/config" : "v0.0.1"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"pds/skeleton": "^1.0",
|
"pds/skeleton": "^1.0",
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace BSR\Search;
|
namespace BSR\BookSearch;
|
||||||
|
|
||||||
use BSR\Config\Configuration;
|
use BSR\Config\Configuration;
|
||||||
use BSR\Webservice\Exception\WebException;
|
use BSR\BookSearch\Exception\WebException;
|
||||||
//use BSR\Webservice\Logger;
|
//use BSR\Webservice\Logger;
|
||||||
|
|
||||||
mb_http_output('UTF-8');
|
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