Skip to content

Commit

Permalink
removed spatie/once
Browse files Browse the repository at this point in the history
  • Loading branch information
onairmarc committed Dec 17, 2023
1 parent 6c29348 commit 7cd1daf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"require": {
"guzzlehttp/guzzle": "^7.7",
"php": "^8.1",
"jms/serializer": "^3.28",
"spatie/once": "^3.1"
"jms/serializer": "^3.28"
},
"require-dev": {
"tightenco/duster": "^2.3"
Expand Down
4 changes: 1 addition & 3 deletions src/PlanningCenterClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ public function createClient(): void
{
$handler = new CurlHandler;
$stack = HandlerStack::create($handler);
$this->client = once(function () use ($stack) {
return new GuzzleClient([
$this->client = new GuzzleClient([
'base_uri' => 'https://api.planningcenteronline.com',
'handler' => $stack,
]);
});
}

public function getClient(): GuzzleClient
Expand Down

0 comments on commit 7cd1daf

Please sign in to comment.