correct insta
This commit is contained in:
parent
bc03f57516
commit
fbff6bfce2
|
|
@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||||
namespace SbpJm\FlarumMSTeamsWebhook\Service;
|
namespace SbpJm\FlarumMSTeamsWebhook\Service;
|
||||||
|
|
||||||
use Flarum\Settings\SettingsRepositoryInterface;
|
use Flarum\Settings\SettingsRepositoryInterface;
|
||||||
use GuzzleHttp\ClientInterface;
|
use GuzzleHttp\Client;
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
|
||||||
class GraphTokenProvider
|
class GraphTokenProvider
|
||||||
|
|
@ -14,7 +14,7 @@ class GraphTokenProvider
|
||||||
protected int $expiresAt = 0;
|
protected int $expiresAt = 0;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
protected ClientInterface $http,
|
protected Client $http,
|
||||||
protected SettingsRepositoryInterface $settings
|
protected SettingsRepositoryInterface $settings
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
@ -54,4 +54,4 @@ class GraphTokenProvider
|
||||||
|
|
||||||
return $this->accessToken;
|
return $this->accessToken;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -7,7 +7,7 @@ namespace SbpJm\FlarumMSTeamsWebhook\Service;
|
||||||
use Flarum\Notification\Blueprint\BlueprintInterface;
|
use Flarum\Notification\Blueprint\BlueprintInterface;
|
||||||
use Flarum\Settings\SettingsRepositoryInterface;
|
use Flarum\Settings\SettingsRepositoryInterface;
|
||||||
use Flarum\User\User;
|
use Flarum\User\User;
|
||||||
use GuzzleHttp\ClientInterface;
|
use GuzzleHttp\Client;
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
use SbpJm\FlarumMSTeamsWebhook\Support\NotificationPayloadFactory;
|
use SbpJm\FlarumMSTeamsWebhook\Support\NotificationPayloadFactory;
|
||||||
use SbpJm\FlarumMSTeamsWebhook\Support\TargetResolver;
|
use SbpJm\FlarumMSTeamsWebhook\Support\TargetResolver;
|
||||||
|
|
@ -15,7 +15,7 @@ use SbpJm\FlarumMSTeamsWebhook\Support\TargetResolver;
|
||||||
class TeamsActivityNotifier
|
class TeamsActivityNotifier
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
protected ClientInterface $http,
|
protected Client $http,
|
||||||
protected SettingsRepositoryInterface $settings,
|
protected SettingsRepositoryInterface $settings,
|
||||||
protected GraphTokenProvider $tokenProvider,
|
protected GraphTokenProvider $tokenProvider,
|
||||||
protected TargetResolver $targetResolver,
|
protected TargetResolver $targetResolver,
|
||||||
|
|
@ -64,4 +64,4 @@ class TeamsActivityNotifier
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue