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

Commit ea68331

Browse files
committedMar 7, 2024
🚿
1 parent f7e8181 commit ea68331

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed
 

‎examples/Providers/Spotify/SpotifyClient.php

+1-21
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,7 @@
99
*/
1010

1111
use chillerlan\HTTP\Utils\MessageUtil;
12-
use chillerlan\OAuth\OAuthOptions;
1312
use chillerlan\OAuth\Providers\Spotify;
14-
use chillerlan\OAuth\Storage\MemoryStorage;
15-
use chillerlan\OAuth\Storage\OAuthStorageInterface;
16-
use chillerlan\Settings\SettingsContainerInterface;
17-
use Psr\Http\Client\ClientInterface;
18-
use Psr\Http\Message\RequestFactoryInterface;
19-
use Psr\Http\Message\StreamFactoryInterface;
20-
use Psr\Http\Message\UriFactoryInterface;
21-
use Psr\Log\LoggerInterface;
22-
use Psr\Log\NullLogger;
2313

2414
/**
2515
*
@@ -34,17 +24,7 @@ class SpotifyClient extends Spotify{
3424
protected array $artists = [];
3525
protected array $albums = [];
3626

37-
public function __construct(
38-
OAuthOptions|SettingsContainerInterface $options,
39-
ClientInterface $http,
40-
RequestFactoryInterface $requestFactory,
41-
StreamFactoryInterface $streamFactory,
42-
UriFactoryInterface $uriFactory,
43-
OAuthStorageInterface $storage = new MemoryStorage,
44-
LoggerInterface $logger = new NullLogger
45-
){
46-
parent::__construct($options, $http, $requestFactory, $streamFactory, $uriFactory, $storage, $logger);
47-
27+
protected function construct():void{
4828
// set the servicename to the original provider's name so that we use the same tokens
4929
$this->serviceName = 'Spotify';
5030
$this->getMe();

0 commit comments

Comments
 (0)
This repository has been archived.