Skip to content

Commit

Permalink
Remove the unnecessary logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tgallice committed Apr 21, 2016
1 parent d8abc4d commit b4d69e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -27,8 +27,7 @@
},
"require": {
"php": ">=5.5.0",
"guzzlehttp/guzzle": "^6.2",
"psr/log": "^1.0"
"guzzlehttp/guzzle": "^6.2"
},
"extra": {
"branch-alias": {
Expand Down
9 changes: 1 addition & 8 deletions src/Client.php
Expand Up @@ -5,7 +5,6 @@
use Tgallice\Wit\HttpClient\GuzzleHttpClient;
use Tgallice\Wit\HttpClient\HttpClient;
use Psr\Http\Message\ResponseInterface;
use Psr\Log\LoggerInterface;
use Tgallice\Wit\Exception\BadResponseException;

class Client
Expand All @@ -30,11 +29,6 @@ class Client
*/
private $client;

/**
* @var LoggerInterface
*/
private $logger;

/**
* @var ResponseInterface|null
*/
Expand All @@ -50,11 +44,10 @@ class Client
*/
public static $allowedMethod = ['POST', 'GET', 'PUT', 'DELETE'];

public function __construct($accessToken, HttpClient $httpClient = null, LoggerInterface $logger = null)
public function __construct($accessToken, HttpClient $httpClient = null)
{
$this->accessToken = $accessToken;
$this->client = $httpClient ?: $this->defaultHttpClient();
$this->logger = $logger;
}

/**
Expand Down

0 comments on commit b4d69e9

Please sign in to comment.