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;
|
namespace Flarum\Pusher\Api\Controller;
|
||||||
|
|
||||||
use Flarum\Http\Controller\ControllerInterface;
|
use Flarum\Http\Controller\ControllerInterface;
|
||||||
use Flarum\Settings\SettingsRepository;
|
use Flarum\Settings\SettingsRepositoryInterface;
|
||||||
use Psr\Http\Message\ServerRequestInterface;
|
use Psr\Http\Message\ServerRequestInterface;
|
||||||
use Pusher;
|
use Pusher;
|
||||||
use Zend\Diactoros\Response\EmptyResponse;
|
use Zend\Diactoros\Response\EmptyResponse;
|
||||||
|
@ -20,14 +20,14 @@ use Zend\Diactoros\Response\JsonResponse;
|
||||||
class AuthController implements ControllerInterface
|
class AuthController implements ControllerInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var SettingsRepository
|
* @var SettingsRepositoryInterface
|
||||||
*/
|
*/
|
||||||
protected $settings;
|
protected $settings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param SettingsRepository $settings
|
* @param SettingsRepositoryInterface $settings
|
||||||
*/
|
*/
|
||||||
public function __construct(SettingsRepository $settings)
|
public function __construct(SettingsRepositoryInterface $settings)
|
||||||
{
|
{
|
||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,20 +14,20 @@ use Flarum\Api\Serializer\ForumSerializer;
|
||||||
use Flarum\Event\ConfigureApiRoutes;
|
use Flarum\Event\ConfigureApiRoutes;
|
||||||
use Flarum\Event\PrepareApiAttributes;
|
use Flarum\Event\PrepareApiAttributes;
|
||||||
use Flarum\Pusher\Api\Controller\AuthController;
|
use Flarum\Pusher\Api\Controller\AuthController;
|
||||||
use Flarum\Settings\SettingsRepository;
|
use Flarum\Settings\SettingsRepositoryInterface;
|
||||||
use Illuminate\Contracts\Events\Dispatcher;
|
use Illuminate\Contracts\Events\Dispatcher;
|
||||||
|
|
||||||
class AddPusherApi
|
class AddPusherApi
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var SettingsRepository
|
* @var SettingsRepositoryInterface
|
||||||
*/
|
*/
|
||||||
protected $settings;
|
protected $settings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param SettingsRepository $settings
|
* @param SettingsRepositoryInterface $settings
|
||||||
*/
|
*/
|
||||||
public function __construct(SettingsRepository $settings)
|
public function __construct(SettingsRepositoryInterface $settings)
|
||||||
{
|
{
|
||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,21 +13,21 @@ namespace Flarum\Pusher\Listener;
|
||||||
use Flarum\Core\Guest;
|
use Flarum\Core\Guest;
|
||||||
use Flarum\Event\NotificationWillBeSent;
|
use Flarum\Event\NotificationWillBeSent;
|
||||||
use Flarum\Event\PostWasPosted;
|
use Flarum\Event\PostWasPosted;
|
||||||
use Flarum\Settings\SettingsRepository;
|
use Flarum\Settings\SettingsRepositoryInterface;
|
||||||
use Illuminate\Contracts\Events\Dispatcher;
|
use Illuminate\Contracts\Events\Dispatcher;
|
||||||
use Pusher;
|
use Pusher;
|
||||||
|
|
||||||
class PushNewPosts
|
class PushNewPosts
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var SettingsRepository
|
* @var SettingsRepositoryInterface
|
||||||
*/
|
*/
|
||||||
protected $settings;
|
protected $settings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param SettingsRepository $settings
|
* @param SettingsRepositoryInterface $settings
|
||||||
*/
|
*/
|
||||||
public function __construct(SettingsRepository $settings)
|
public function __construct(SettingsRepositoryInterface $settings)
|
||||||
{
|
{
|
||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user