diff --git a/extensions/pusher/src/Api/Controller/AuthController.php b/extensions/pusher/src/Api/Controller/AuthController.php index 054e6b781..1d41640eb 100644 --- a/extensions/pusher/src/Api/Controller/AuthController.php +++ b/extensions/pusher/src/Api/Controller/AuthController.php @@ -11,7 +11,7 @@ namespace Flarum\Pusher\Api\Controller; use Flarum\Http\Controller\ControllerInterface; -use Flarum\Settings\SettingsRepository; +use Flarum\Settings\SettingsRepositoryInterface; use Psr\Http\Message\ServerRequestInterface; use Pusher; use Zend\Diactoros\Response\EmptyResponse; @@ -20,14 +20,14 @@ use Zend\Diactoros\Response\JsonResponse; class AuthController implements ControllerInterface { /** - * @var SettingsRepository + * @var SettingsRepositoryInterface */ protected $settings; /** - * @param SettingsRepository $settings + * @param SettingsRepositoryInterface $settings */ - public function __construct(SettingsRepository $settings) + public function __construct(SettingsRepositoryInterface $settings) { $this->settings = $settings; } diff --git a/extensions/pusher/src/Listener/AddPusherApi.php b/extensions/pusher/src/Listener/AddPusherApi.php index b8f451cea..942396acd 100755 --- a/extensions/pusher/src/Listener/AddPusherApi.php +++ b/extensions/pusher/src/Listener/AddPusherApi.php @@ -14,20 +14,20 @@ use Flarum\Api\Serializer\ForumSerializer; use Flarum\Event\ConfigureApiRoutes; use Flarum\Event\PrepareApiAttributes; use Flarum\Pusher\Api\Controller\AuthController; -use Flarum\Settings\SettingsRepository; +use Flarum\Settings\SettingsRepositoryInterface; use Illuminate\Contracts\Events\Dispatcher; class AddPusherApi { /** - * @var SettingsRepository + * @var SettingsRepositoryInterface */ protected $settings; /** - * @param SettingsRepository $settings + * @param SettingsRepositoryInterface $settings */ - public function __construct(SettingsRepository $settings) + public function __construct(SettingsRepositoryInterface $settings) { $this->settings = $settings; } diff --git a/extensions/pusher/src/Listener/PushNewPosts.php b/extensions/pusher/src/Listener/PushNewPosts.php index 930293e2e..dd2ff9d91 100644 --- a/extensions/pusher/src/Listener/PushNewPosts.php +++ b/extensions/pusher/src/Listener/PushNewPosts.php @@ -13,21 +13,21 @@ namespace Flarum\Pusher\Listener; use Flarum\Core\Guest; use Flarum\Event\NotificationWillBeSent; use Flarum\Event\PostWasPosted; -use Flarum\Settings\SettingsRepository; +use Flarum\Settings\SettingsRepositoryInterface; use Illuminate\Contracts\Events\Dispatcher; use Pusher; class PushNewPosts { /** - * @var SettingsRepository + * @var SettingsRepositoryInterface */ protected $settings; /** - * @param SettingsRepository $settings + * @param SettingsRepositoryInterface $settings */ - public function __construct(SettingsRepository $settings) + public function __construct(SettingsRepositoryInterface $settings) { $this->settings = $settings; }