diff --git a/src/Service/GraphTokenProvider.php b/src/Service/GraphTokenProvider.php index 9bed56c..c26a757 100644 --- a/src/Service/GraphTokenProvider.php +++ b/src/Service/GraphTokenProvider.php @@ -5,7 +5,7 @@ declare(strict_types=1); namespace SbpJm\FlarumMSTeamsWebhook\Service; use Flarum\Settings\SettingsRepositoryInterface; -use GuzzleHttp\ClientInterface; +use GuzzleHttp\Client; use RuntimeException; class GraphTokenProvider @@ -14,7 +14,7 @@ class GraphTokenProvider protected int $expiresAt = 0; public function __construct( - protected ClientInterface $http, + protected Client $http, protected SettingsRepositoryInterface $settings ) { } @@ -54,4 +54,4 @@ class GraphTokenProvider return $this->accessToken; } -} +} \ No newline at end of file diff --git a/src/Service/TeamsActivityNotifier.php b/src/Service/TeamsActivityNotifier.php index bf53dd2..501f56e 100644 --- a/src/Service/TeamsActivityNotifier.php +++ b/src/Service/TeamsActivityNotifier.php @@ -7,7 +7,7 @@ namespace SbpJm\FlarumMSTeamsWebhook\Service; use Flarum\Notification\Blueprint\BlueprintInterface; use Flarum\Settings\SettingsRepositoryInterface; use Flarum\User\User; -use GuzzleHttp\ClientInterface; +use GuzzleHttp\Client; use RuntimeException; use SbpJm\FlarumMSTeamsWebhook\Support\NotificationPayloadFactory; use SbpJm\FlarumMSTeamsWebhook\Support\TargetResolver; @@ -15,7 +15,7 @@ use SbpJm\FlarumMSTeamsWebhook\Support\TargetResolver; class TeamsActivityNotifier { public function __construct( - protected ClientInterface $http, + protected Client $http, protected SettingsRepositoryInterface $settings, protected GraphTokenProvider $tokenProvider, protected TargetResolver $targetResolver, @@ -64,4 +64,4 @@ class TeamsActivityNotifier )); } } -} +} \ No newline at end of file