Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
🚿
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Mar 7, 2024
1 parent f7e8181 commit ea68331
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions examples/Providers/Spotify/SpotifyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,7 @@
*/

use chillerlan\HTTP\Utils\MessageUtil;
use chillerlan\OAuth\OAuthOptions;
use chillerlan\OAuth\Providers\Spotify;
use chillerlan\OAuth\Storage\MemoryStorage;
use chillerlan\OAuth\Storage\OAuthStorageInterface;
use chillerlan\Settings\SettingsContainerInterface;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
use Psr\Http\Message\UriFactoryInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;

/**
*
Expand All @@ -34,17 +24,7 @@ class SpotifyClient extends Spotify{
protected array $artists = [];
protected array $albums = [];

public function __construct(
OAuthOptions|SettingsContainerInterface $options,
ClientInterface $http,
RequestFactoryInterface $requestFactory,
StreamFactoryInterface $streamFactory,
UriFactoryInterface $uriFactory,
OAuthStorageInterface $storage = new MemoryStorage,
LoggerInterface $logger = new NullLogger
){
parent::__construct($options, $http, $requestFactory, $streamFactory, $uriFactory, $storage, $logger);

protected function construct():void{
// set the servicename to the original provider's name so that we use the same tokens
$this->serviceName = 'Spotify';
$this->getMe();
Expand Down

0 comments on commit ea68331

Please sign in to comment.