Skip to content

Commit

Permalink
Remove logger
Browse files Browse the repository at this point in the history
  • Loading branch information
filippovacodeline committed Nov 28, 2024
1 parent bf0a0e2 commit cdaa48b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/SPanel/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use GuzzleHttp\Client;
use Throwable;
use Carbon\Carbon;
use Psr\Log\LoggerInterface;
use GuzzleHttp\HandlerStack;
use Upmind\ProvisionBase\Helper;
use Illuminate\Support\Str;
Expand All @@ -22,14 +21,11 @@
class Api
{
private Configuration $configuration;
private ?LoggerInterface $logger;
protected Client $client;

public function __construct(Configuration $configuration, ?LoggerInterface $logger = null, ?HandlerStack $handler = null)
public function __construct(Configuration $configuration, ?HandlerStack $handler = null)
{
$this->configuration = $configuration;
$this->logger = $logger;

$this->client = new Client([
'base_uri' => sprintf('https://%s', $this->configuration->hostname),
'headers' => [
Expand Down
2 changes: 1 addition & 1 deletion src/SPanel/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,6 @@ protected function api(): Api
return $this->api;
}

return $this->api = new Api($this->configuration, $this->getLogger(), $this->getGuzzleHandlerStack());
return $this->api = new Api($this->configuration, $this->getGuzzleHandlerStack());
}
}

0 comments on commit cdaa48b

Please sign in to comment.