9
9
*/
10
10
11
11
use chillerlan \HTTP \Utils \MessageUtil ;
12
- use chillerlan \OAuth \OAuthOptions ;
13
12
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 ;
23
13
24
14
/**
25
15
*
@@ -34,17 +24,7 @@ class SpotifyClient extends Spotify{
34
24
protected array $ artists = [];
35
25
protected array $ albums = [];
36
26
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 {
48
28
// set the servicename to the original provider's name so that we use the same tokens
49
29
$ this ->serviceName = 'Spotify ' ;
50
30
$ this ->getMe ();
0 commit comments