mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 12:43:52 +08:00
Add Interface suffix to SettingsRepository
This commit is contained in:
parent
fdb6d4735d
commit
f0a96c3e1c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user