|
19 | 19 | Core\AccessToken, Core\OAuthInterface, OAuthOptions, Storage\MemoryStorage, Storage\OAuthStorageInterface |
20 | 20 | }; |
21 | 21 | use chillerlan\OAuthTest\OAuthTestAbstract; |
22 | | -use chillerlan\Traits\ContainerInterface; |
| 22 | +use chillerlan\Traits\ImmutableSettingsInterface; |
23 | 23 | use Psr\Log\LoggerInterface; |
24 | 24 |
|
25 | 25 | abstract class APITestAbstract extends OAuthTestAbstract{ |
@@ -106,25 +106,25 @@ protected function setUp(){ |
106 | 106 | /** |
107 | 107 | * @param \chillerlan\HTTP\HTTPClientInterface $http |
108 | 108 | * @param \chillerlan\OAuth\Storage\OAuthStorageInterface $storage |
109 | | - * @param \chillerlan\Traits\ContainerInterface $options |
| 109 | + * @param \chillerlan\Traits\ImmutableSettingsInterface $options |
110 | 110 | * @param \Psr\Log\LoggerInterface $logger |
111 | 111 | * |
112 | 112 | * @return \chillerlan\OAuth\Core\OAuthInterface |
113 | 113 | */ |
114 | | - protected function initProvider(HTTPClientInterface $http, OAuthStorageInterface $storage, ContainerInterface $options, LoggerInterface $logger){ |
| 114 | + protected function initProvider(HTTPClientInterface $http, OAuthStorageInterface $storage, ImmutableSettingsInterface $options, LoggerInterface $logger){ |
115 | 115 | return new $this->FQCN($http, $storage, $options, $logger); |
116 | 116 | } |
117 | 117 |
|
118 | 118 | /** |
119 | | - * @param \chillerlan\Traits\ContainerInterface $options |
| 119 | + * @param \chillerlan\Traits\ImmutableSettingsInterface $options |
120 | 120 | * |
121 | 121 | * @return \chillerlan\HTTP\HTTPClientInterface |
122 | 122 | */ |
123 | | - protected function initHttp(ContainerInterface $options):HTTPClientInterface{ |
| 123 | + protected function initHttp(ImmutableSettingsInterface $options):HTTPClientInterface{ |
124 | 124 | return new class($options) extends HTTPClientAbstract{ |
125 | 125 | protected $client; |
126 | 126 |
|
127 | | - public function __construct(ContainerInterface $options){ |
| 127 | + public function __construct(ImmutableSettingsInterface $options){ |
128 | 128 | parent::__construct($options); |
129 | 129 | $this->client = new CurlClient($this->options); |
130 | 130 | } |
|
0 commit comments