Add Interface suffix to SettingsRepository

This commit is contained in:
Toby Zerner 2015-10-19 14:59:15 +10:30
parent fdb6d4735d
commit f0a96c3e1c
3 changed files with 12 additions and 12 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}